GATE CS 2016, set 2 · Question 22 · Programming and Data Structures · Numerical answer (NAT) · 1 mark · no negative marks
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); }
Answer
Answer 30
Answer from the official GATE CS 2016 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes