Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 1
How to convert octal numbers to decimal in c++?
1 Answer
+ 2
c++ will convert it automatically.
int myints = 0123; // octal number
cout << "As a decimal " << myints<< endl;
cout << oct << "As an Octal " << myints;