Skip to content

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

GateBrew
← GATE CSE 2016 Set 2
Questions

Q12

NAT1 markMedium

The value printed by the following program is _______.

void f (int * p, int m) {
    m = m + 5;
    *p = *p + m;
    return;
}
void main () {
    int i=5, j=10;
    f (&i, j);
    printf ("%d", i+j);
}
Sign in to save attempts.

Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.