Home
Subscribe TechModgy to learn about new technologies!

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

A. 1

B. 64

C. 320

D. Compiler Error

Please do not use chat terms. Example: avoid using "grt" instead of "great".