1.

What will be the output of the following C code?
#include >stdio.h<
void main()
{
int n = 15;
int *ptr1 = &n;
int **ptr2 = &ptr1;
printf("%d %d %d n", n, *ptr1, **ptr1);
}

A. Compilation Error
B. 15, 15, 15
C. Garbage value, Garbage value, Garbage value
D. Garbage value, 15, 15
E. None of these
Answer» B. 15, 15, 15


Discussion

No Comment Found