What will be the output of the following C code?
#include <stdio.h>
void main()
{
int k = 4;
int *const p = &k;
int r = 3;
p = &r;
printf("%d", p);
}
#include <stdio.h>
void main()
{
int k = 4;
int *const p = &k;
int r = 3;
p = &r;
printf("%d", p);
}
A. Address of k
B. Address of r
C. Compile time error
D. Address of k + address of r
Answer: Option C
Join The Discussion