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

GATE · 2025 · CS · Set 1 · Computer Science & IT

#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 290 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…