1.

What will be the output of the following C code?
#include 
void main()
{
int n = 6;
int *ptr1 = &n;
int *ptr2 = ptr1++;
int Res = ptr1 - ptr2;
printf("%d", Res);
}

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


Discussion

No Comment Found

Related MCQs