Examveda

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);
}

A. Address of k

B. Address of r

C. Compile time error

D. Address of k + address of r

Answer: Option C


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals