A

Admin • 802.91K Points
Coach

Q. Find the output of below program.

Code:
int main()
{
int i=0,x=0;

for(i=1;i<10;i*=2)
{
x++;
cout<<x;
}
cout<<x;

return 0;
}
  • (A) 12344
  • (B) 123455
  • (C) 12345678910
  • (D) 1234567899
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.