C Tutorial/printf scanf/printf hexadecimal — различия между версиями

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

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

X: Unsigned integer in hexadecimal form, and the hexadecimal characters A, B, C, D, E, and F printed in uppercase.

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

   int i = 100;
   printf(" %X\n",i);

}</source>

64

x:Unsigned integers in hexadecimal form, and the hexadecimal characters a, b, c, d, e, and f printed in lowercase.

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

   int i = 100;
   printf(" %x\n",i);

}</source>

64