what exactly is char **??
how is it used in getline function?
learner_new
0
Newbie Poster
Recommended Answers
Jump to Postthink of this like this:
#include <iostream> using namespace std; int main(){ char a='a'; cout<<"Char a: "<<a<<endl; char* p=new char(a); cout<<"Char* p(points to a): "<<*p<<endl; char** pp=new char*(p); cout<<"Char** pp (points to p which points to a): "<<**pp<<endl; return (0); }
Also you can do a …
All 4 Replies
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Lucaci Andrew
140
Za s|n
learner_new
0
Newbie Poster
NathanOliver
429
Veteran Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.