Friday, 8 February 2013

5

What will be output of following program?

#include<stdio.h>
int main()
{
int a = 320;
char *ptr;
ptr =( char *)&a;
printf("%d ",*ptr);
return 0;
}

(A) 2
(B) 320
(C) 64
(D) Compilation error
(E) None of above.
Join me on Facebook