Both char* p and char *p are same. It denotes that p is a pointer to character. Space is not significant in pointer declaration.
We can also write the same thing as char * p which has a space between p & * and also char & *.
If you declare as below
char* a,b;
here 'a' is the pointer to character and 'b' is simply a character.
ie the above code is equivalent to
char *a;
char b;
Get Answers For Free
Most questions answered within 1 hours.