main() { char s[7] = "hello\n"; /* same as: char s[] = "hello\n" */ char *t = "world\n"; char *q = "world\n"; printf("%c %d %d %d\n",s[0],s,&s,&s[7]); printf("%c %d %d\n",t[0],t,&t); printf("%c %d %d\n\n",q[0],q,&q); q = (char *) malloc(7); strcpy(q,s); printf("%c %d %d\n\n",q[0],q,&q); t[1] = 'i'; printf("%c %d %d\n",t[0],t,&t); }