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
hex changes the base used for integer I/O to hexadecimal.
Other available options:
dec - decimal base format.
oct - octal base format.

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты