23. main(){
int i=4,j=7;
j = j || i++ && printf("YOU CAN");
printf("%d %d", i, j);
}
Output : 4 1
Because of short-circuit evaluation
24. main(){
static int i;
while(i<=10) (i>2)?i++:i--;
printf(“%d”, i);
}
Output: 32767
because static int will be initialized to 0.

Custom Search
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment