πŸ“Š C++
Q. What should be output of below program
if use enter a = 5?
Code:
int main()
{
    int a;
    cin>>a; // user can enter any value
    
	if (++a*5 <= 25)
	{
	    cout<<"Hello";
	}
	else
	{
	    cout<<"Bye";	
	}

}
  • (A) Hello
  • (B) Bye
  • (C) Undefined
  • (D) Compilation Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) Bye

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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