1.

What will be the output of the following C code?
#include <stdio.h>
void main()
{
int var[4] = {11, 21, 31, 41};
int *ptr1 = var;
int **ptr2 = &ptr1;
printf("%p %p", *ptr2, var);
}

A. Same memory address is printed.
B. Different memory address is printed.
C. 11, 21, 31, 41
D. 41, 31
E. None of these
Answer» B. Different memory address is printed.


Discussion

No Comment Found