Q.

What will be output if you will compile and execute the following c code? #include<stdio.h>
int main(){
int i=320;
char *ptr=(char *)&i;
printf("%d",*ptr); return 0;
}

A. 320
B. 1
C. 64
D. none of the above
Answer» C. 64
879
0
Do you find this helpful?
3

Discussion

No comments yet

Related MCQs