char *pa; and char a;This tip submitted by avdtech on 2005-03-14 19:00:25. It has been viewed 45184 times.
Rating of 5.6 with 380 votes
although the two definitions look same, there is major difference:-
char a = "I am Here";
char *pa = "I am here";
u can't assign another string to array:
a = "You cannot" /* illegal */
otherwise with ap,
pa = "You can do this" /* legal */
Help your fellow programmers! Add a tip!
Want to become a C++ programmer? The Cprogramming.com ebook, Jumping into C++, will walk you through it, step-by-step. Get Jumping into C++ today!