What is the exact output of the code below if we execute the function call q2(20)?
#include <iostream>
using namespace std;
void q2(int n)
{
for (int i = 1; i < n; i *= 2)
cout << i;
}
What is the exact output of the code below if we execute the function call q2(20)?
#include <iostream>
using namespace std;
void q2(int n)
{
for (int i = 1; i < n; i *= 2)
cout << i;
}