1.

What will be the output of the following C code? #include int x = 0; void main() { int *ptr = &x; printf("%p\n", ptr); x++; printf("%p\n ", ptr); }

A. Same address
B. Different address
C. Compile time error
D. Varies
Answer» B. Different address


Discussion

No Comment Found