C Tutorial/Data Type/Hexadecimal numbers

Материал из C\C++ эксперт
Версия от 13:32, 25 мая 2010; Admin (обсуждение | вклад) (1 версия: Импорт контента...)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Hexadecimal numbers

  1. Hexadecimal numbers use base 16.
  2. The characters used in hexadecimal numbers are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F.
  3. You can print numbers in hexadecimal form by using the format "x".


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

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

}</source>