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 */
Author : Avdtech
Monday, February 23, 2009
Subscribe to:
Post Comments (Atom)
0 nhận xét:
Post a Comment