Programming Languages C Objective
Mar 08, 2013

What will be output if you will compile and execute the following c
code?
void main(){
int i=320;
char *ptr=(char *)&i;
printf("%d",*ptr);
}

Choose the correct answer:
A) 320
B) 64
C) 128
D) 1
Detailed Explanation

No Explanation

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback