541
GB
What is the output: int x=5; cout<<(x>0)*x+(x<0)*(-x);
IN
आउटपुट क्या है: int x=5; अदालत
A
5
5
C
-5
-5
D
Compile error
संकलन त्रुटि
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
(1)*5+(0)*(-5)=5. Output: 5.
व्याख्या (हिन्दी)
(1)*5+(0)*(-5)=5. आउटपुट: 5.