Monday, February 23, 2009

char *pa; and char a[];

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

0 nhận xét:

Post a Comment