Consider the following C program: #include <stdio.h> int main(){ int a; int…
PYQ GATE 2025
Consider the following C program:
#include <stdio.h>
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 program is ___________. (Answer in integer)
Attempted by 208 students.
Sign up free to check your answer
Sign up freeLoading lesson…

