#include <stdio.h> void foo(int *p, int x) { *p = x; } int main() { int *z;…

PYQ GATE 2025

#include <stdio.h>
void foo(int *p, int x) {
*p = x;
}
int main() {
int *z;
int a = 20, b = 25;
z = &a;
foo(z, b);
printf("%d", a);
return 0;
}

The output of the given C program is __________. (Answer in integer)

Attempted by 329 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…