What happens when you attempt to compile and run the following code?#include <iostream>using namespace std;int main(){co
Posted: Wed Aug 03, 2022 9:20 am
What happens when you attempt to compile and run the following code?#include <iostream>using namespace std;int main(){cout.setf(ios::hex, ios::basefield);cout<<100<<" ";cout.flags(ios::showbase);cout<<100<<" ";return 0;}Program outputs:
A. 64 64
B. 64 0x64
C. 0x64 0x64
D. 64 100 E. compilation error
A. 64 64
B. 64 0x64
C. 0x64 0x64
D. 64 100 E. compilation error