What will be printed out as a result of the following program's execution?

#include <iostream>
using namespace std;

int main() {
  cout << 1 << hex << 16;
  return 0;
}
Explanation
hexchanges the base used for integer I/O to hexadecimal.
Other available options:
dec - decimal base format.
. oct - octal base format.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
C++ quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes