1.

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

A. Compilation Error
B. 5
C. 1
D. Runtime Error
E. None of these
Answer» D. Runtime Error


Discussion

No Comment Found

Related MCQs