difference between char* and char** in C++
-
Hi, Can anyone pleae explain the difference between char* and char** in c++, with examples. Regards, KDevloper
kDevloper wrote:
char*
one dimensional array of char. The pointer would contain the base address.
kDevloper wrote:
char**
two dimensional array of chars or better said, one dimensional array of strings in some scenarios
Some things seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
Hi, Can anyone pleae explain the difference between char* and char** in c++, with examples. Regards, KDevloper
kDevloper wrote:
Can anyone pleae explain the difference between char* and char** in C++
in C++ ? the same as in C. char* is a pointer that points to a char. char** is a pointer that points to a char*. when char pointers are used like strings (C style strings then), char* is a string, and char** is an array of strings... but the later assertion depends of the context...
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]