answersLogoWhite

0


Best Answer

Not sure is what respect, but when you want a variable to be read as an octal put a 0 in front of the number.

a = 01, b = 02; Lets the compiler know that 1 and 2 are to be stored as octals.

To print an unsigned number as an octal use %o.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you enter a number as octal in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp