How to convert octal numbers to decimal in c++? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

How to convert octal numbers to decimal in c++?

17th Dec 2019, 11:10 PM
George Morkos
George Morkos - avatar
1 Respuesta
+ 2
c++ will convert it automatically. int myints = 0123; // octal number cout << "As a decimal " << myints<< endl; cout << oct << "As an Octal " << myints;
17th Dec 2019, 11:45 PM
rodwynnejones
rodwynnejones - avatar