Discussion :: C++ - MCQs
-
What is the output of this program?
#include < iostream >
using namespace std;
int main ()
int n;
n = 43;
cout << hex << n << endl;
return 0;
}
Answer : Option B
Explanation :
In this program, We are printing the hexadecimal value of the given decimal number by using hex function.
Be The First To Comment