Thursday, 16 August 2012

What will be output if you will compile and execute the following c code? | C Programming

#include<stdio.h>
 intmain()
{
inti=320;
char*ptr=C.har*)&i;
printf("%d",*ptr);
return0;
}


A. 320
B. 1
C.. 64
D. Compiler error
E. None of above

Ans: C

No comments: