Programming - C Language - Pointers and Arrays
GATE CSE & IT · 2 questions across 2 years (2024-2025) · 5% recurrence rate
Recurrence sparkline
2024–202520242025
Difficulty mix
med 100%
Question types
NAT1
MCQ1
All 2 questions on Programming - C Language - Pointers and Arrays
2025 Q62
Consider the following C program: #include int main() { int a; int arr[5] = {30,50,10}; int *ptr; ptr = &arr[0] + 1; a = *ptr; (*ptr)++; ptr++; printf("%d", a + (*ptr) + arr[1]); return 0; } The output of the above progr...
Med✓
2024 Q36
What is the output of the following C program? #include int main() { double a [2]={20.0, 25.0}, *p, *q; p = a; q = p + 1; printf("%d,%d", (int)(q - p), (int)(*q - *p)); return 0;}
Med✓