New course! Every coder should learn Generative AI!
Try a free lesson+ 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;