πŸ“Š C++
Q. What should be printed on screen?
Code:
int main() 
{
int x = 5;

if(x++ == 5)
cout<<"Five"<<endl;
else
if(++x == 6)
cout<<"Six"<<endl;

return 0;
}
  • (A) Five
  • (B) Six
  • (C) FiveSix
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (A) Five

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
202
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
93%
Success Rate