385
голосов
12ответов
773690 просмотров

Как отформатировать unsigned long long int с помощью printf?

#include <stdio.h> int main() { unsigned long long int num = 285212672; //FYI: fits in 29 bits int normalInt = 5; printf("My number is %d bytes wide and its value is %ul. A normal number is %d.\n", sizeof(num), num, normalInt); return 0; } Вывод: My number is 8 bytes...