Mega Code Archive
Display hexadecimal integer literals and decimal integer literals
#include
using namespace std;
int main()
{
cout << "Value of 0xFF = " << 0xFF << " decimal" << endl;
cout << "Value of 27 = " << hex << 27 <<" hexadecimal" << endl;
return 0;
}