1.

What will be the output of the following C code?
 #include <stdio.h>
int num = 0;
void main()
{
int *p = &num;
printf("%p n", p);
num++;
printf("%p n ", p);
}

A. Compilation Error
B. Same memory address
C. Different memory address
D. Varies
E. None of these
Answer» C. Different memory address


Discussion

No Comment Found