GATE CS 2025, set 1 · Question 34 · Programming and Data Structures · Numerical answer (NAT) · 1 mark · no negative marks

#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)

Answer

Answer 25

Answer from the official GATE CS 2025 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes