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

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation