C++ int type literal in octal and hexadecimal

Description

C++ int type literal in octal and hexadecimal

#include <iostream>
using namespace std;
int main()//from  ww  w  . j a  v a 2 s.c  om
{
   cout << "The decimal value of 025 is " << 025 << endl << "The decimal value of 0x37 is "<< 0x37 << endl;
   return 0;
}



PreviousNext

Related