NAT · 1 mark · C Programming

GATE CS 2025 CS-1 — Q34

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