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

EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
JudyJudy
Simplicity is my specialty.
Chat with Judy

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