What happens when you attempt to compile and run the following code?
#include
int main()
{
cout.setf(ios::oct, ios::basefield); cout<<100<<" "; cout.setf(ios::showbase); cout<<100<<" ";
return 0;
}
Program outputs:
Select an option, then click Submit answer.
-
○
144 0144
-
○
144 0x64
-
○
0x144 0144
-
○
0144 100
-
○
compilation error