1.

What will be the output of the following C code?
#include <stdio.h>
int main()
{
int arr[5] = {61, 62, 63, 64, 65};
void *p = &arr[1];
void *p1 = &arr[5];
int Res = 0;
Res = p1 - p;
printf("%d n", Res);
}

A. Compilation Error
B. Depends on the compiler
C. 16
D. Garbage value
E. None of these
Answer» D. Garbage value


Discussion

No Comment Found