Constructor Destructor C++ to convert an octal number into binary

By: Prof. Dr. Fazal Rehman Shamil | Last updated: March 3, 2022

Octal to Decimal number program in C++

Constructor C++ to convert an octal number into binary

Output

Enter an octal number to convert: 8

Octal number 8 is equivalent to Binary: 1000

Destructor C++ to convert an octal number into binary

Write a program in C++ to convert an octal number into binary using Destructor.

Output

Enter an octal number to convert: 12

Octal number 12 is equivalent to Binary: 10000

Leave a Reply