What is the output of the below given code?
int y = 9;
y += y+3;
printf("%d",y);
+ = → is an assignment operator
y+ = y+3
y = y + (y + 3)
y = 9 + (9 + 3)
y = 21
Note:
Assignment operator associativity is right to left
What is the output of the below given code?
int y = 9;
y += y+3;
printf("%d",y);
+ = → is an assignment operator
y+ = y+3
y = y + (y + 3)
y = 9 + (9 + 3)
y = 21
Note:
Assignment operator associativity is right to left
No discussions yet. Be the first to start!
You must be logged in to participate in the discussion.
login Login to DiscussCopper is a type of metal similarly, rupee is a currency of India.
Hence, currency is the correct answer.The correct answer is Shark — Tortoise — Otter.
Key Points
Additional Information
The correct answer is Dot Matrix.
Important Points
Key Points
Additional Information
As of June 2020, Master Bhanwarlal Meghwal is the Cabinet Minister of _____ in Rajasthan.
The correct answer is Social Justice and Empowerment.
Key Points
Additional Information
The correct answer is Vitamin C.
Important Points
Additional Information