Octal to Hexadecimal in CWhat is an octal number system?An octal number system is a number system which is having base-8 where base-8 represents the eight digits from 0 to 7. What is a Hexadecimal number system?A hexadecimal number system is a number system which is having base-16 where base-16 represents the sixteen digits, i.e.,0,1,2,3,4,5,6,7,8,9, A, B, C, D, E, F. How to convert an octal number into a hexadecimal numberWe cannot directly convert an octal number system into a hexadecimal number system. First, we need to convert the octal number into a binary number system, and then this binary number system will be converted into a hexadecimal number system. Let's look at the approach.
For example, the octal number is 123. Let's create a simple program which converts the octal into a hexadecimal number. Output Analysis of the above program
Next TopicStrong number in C |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India