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
πŸ’¬ Discuss
βœ… Correct Answer: (A) 12344

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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