Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int x = 4;
    int *p = &x;
    int *k = p++;
    int r = p - k;
    printf("%d", r);
}

A. 4

B. 8

C. 1

D. Run time error

Answer: Option C


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals