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;
}
β
Correct Answer: (A)
12344
int main()
{
int i=0,x=0;
for(i=1;i<10;i*=2)
{
x++;
cout<<x;
}
cout<<x;
return 0;
}
You must be Logged in to update hint/solution