answersLogoWhite

0

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

Still curious? Ask our experts.

Chat with our AI personalities

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
RossRoss
Every question is just a happy little opportunity.
Chat with Ross
ReneRene
Change my mind. I dare you.
Chat with Rene

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