16
GB
What is the output: int f(int& a, int b){ a=10; return a+b; } int x=5; cout<
IN
आउटपुट क्या है: int f(int& a, int b){ a=10; वापसी a+b; } int x=5; अदालत
A
10
10
B
15
15
C
20
20
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
b is passed by value (=5 at call time). Inside f: a=10, return 10+5=15.
व्याख्या (हिन्दी)
b को मान (=कॉल समय पर 5) से पारित किया जाता है। f के अंदर: a=10, वापसी 10+5=15।