61
GB
What is the output: int x=0; for(int i=1;i<=5;i++) x+=(i%2?i:-i); cout<
IN
आउटपुट क्या है: int x=0; for(int i=1;i
A
3
3
B
5
5
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
1-2+3-4+5=3. Output: 3.
व्याख्या (हिन्दी)
1-2+3-4+5=3. आउटपुट: 3.