GATEverse Practice, past papers & mock tests
GATE 2025 · CS1 - Forenoon
Programming & Data StructuresProgrammingmediumNAT1 mark
c
#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)
Save your progress

Related Programming & Data Structures PYQs