Int literal in octal and hexadecimal - C++ Language Basics

C++ examples for Language Basics:Console

Description

Int literal in octal and hexadecimal

Demo Code

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

Result


Related Tutorials