What will be the output of the following C code?
#include <stdio.h>
int main()
{
int i = 10;
int *p = &i;
printf("%d\n", *p++);
}
#include <stdio.h>
int main()
{
int i = 10;
int *p = &i;
printf("%d\n", *p++);
}
A. 10
B. 11
C. Garbage value
D. Address of i
Answer: Option A
Join The Discussion