Computer Science, asked by harshkumar8924, 5 months ago

How octal and hexadecimal number are represented in C​

Answers

Answered by sudeepraul2005
1

Answer:

C provides a feature to assign variables in octal and hex representation. To assign octal value to int variable precede value with 0 (zero) . To assign hex value to int variable precede value with 0x or oX . To print the values in octal and hex we have format specifier %o and %x .

Explanation:

Similar questions