Teaching UGC NET Mock Test Series 2025 (Paper 1 & 2) Programming and Data Structure Programming in C Function Recursion
What will be the output of the following C code?
#include < stdio. h >
void main()
{
int arr[5] = {10, 20, 30, 40, 50};
int *p = (int*) (&arr + 1);
printf("%d %d", *(arr + 1), *(p - 1));
}
1
10 50
2
20 50
3
30 40
4
20 40