C Tutorial/Data Type/Octal numbers

Материал из C\C++ эксперт
Перейти к: навигация, поиск

Octal numbers

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