Sail E0 Webinar
Question


Which of the statements is correct about the program?


#include<stdio.h>
int main()
{
int arr[3][3] = {1, 2, 3, 4};
printf("%d\n", *(*(*(arr))));
return 0;
}
Options:
A .  Output: Garbage value
B .  Output: 1
C .  Output: 3
D .  Error: Invalid indirection
Answer: Option D



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers