C Tutorial/Data Type/Octal numbers — различия между версиями

Материал из C\C++ эксперт
Перейти к: навигация, поиск
м (1 версия: Импорт контента...)
 
(нет различий)

Текущая версия на 13:32, 25 мая 2010

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