C Tutorial/printf scanf/printf hexadecimal

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

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

#include <stdio.h>
main()
{
    int i = 100;
    printf(" %X\n",i);
}
64

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

#include <stdio.h>
main()
{
    int i = 100;
    printf(" %x\n",i);
}
64