The value printed by the following program is __________________ . void f(int*…

PYQ GATE 2016

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);
}

Attempted by 287 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…