1186
GB
What is the output: int x=3; cout<<(x|=x<<1);
IN
आउटपुट क्या है: int x=3; अदालत
A
7
7
B
6
6
C
3
3
D
Compile error
संकलन त्रुटि
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
x<<1=6=110. 3=011. 011|110=111=7. x=7. Output: 7.
व्याख्या (हिन्दी)
एक्स