Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2025 | Set 1
Questions

Q24

NAT1 markEasy
#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\text{C} program is __________. (Answer in integer)

Sign in to save attempts.

The solution is hidden while you attempt this question. It opens once you check or show the answer.