📚 Question Bank Q89 — Programming and Data Structure
Tags
Programming and Data Structure
Q89. Marks: +2.0 UGC NET Paper 2: Computer Sc 23rd August 2024 Shift 1

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 ✓ Correct
3.30 40
4.20 40
📄 All “Programming and Data Structure” questions across papers
🏷 Change Tag for this Question