|
Post by wasting on Mar 23, 2004 14:52:03 GMT -5
im a c newbee complete at awe with pointers code1 br]char *p; char a[]="patrik"; p=a; while (*p!='\0') {printf("%c",*p); p++;} code2 br] char *p; char a[]="patrik"; p=a; while (*p!='\0') {printf("%c",*p); *p++;} both the codes give the same o/p inspite of me incrementing the ptr add val in the first case where as i increase the val of the data to which the prt is pointing. how is this possible??
|
|