Octal numbers : Octal numbers « Data Type « C Tutorial






Represent a number by using the octal number system.

The octal number system that is, base 8.

Use "%o" to print octal numbers.

#include <stdio.h>
main()
{
    int i = 65;
   
    printf("%o", i);
}
101








2.9.Octal numbers
2.9.1.Octal numbers