1.

What will be the output of the following C code?
#include <stdio.h>
int main()
{
void *ptr1;
int var[5] = {50, 60, 70, 80, 90};
ptr1 = &var[3];
int *ptr2 = &var[4];
int m = (int*)ptr1 - ptr2;
printf("%d n", m);
}

A. 90
B. Compilation Error
C. Garbage value
D. -1
E. None of these
Answer» E. None of these


Discussion

No Comment Found