+ 1
How this pointer acts like character array.
#include <iostream> using namespace std; int main() { char *p="mayank sahu"; cout<<p; return 0; }
1 Answer
+ 1
You would get a detailed answer here,
https://stackoverflow.com/questions/5270277/character-pointers-in-c