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.


<source lang="cpp">#include <stdio.h> main() {

   int i = 65;
  
   printf("%o", i);

}</source>

101