Custom Search

Thursday, March 15, 2007

C - Review II 15,16

15. main(){

char *p;

p="Hello";

printf("%c\n",*&*p);

}
Output: H


16. main(){

int i=1;

while (i<=5) { printf("%d",i); if (i>2)

goto here;

i++;

}

}

fun(){

here:

printf("PP");

}
Output: at line 7 error: label ‘here’ used but not defined

No comments: