#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 wide and its value is 285212672l. A normal number is 0.
আমি ধরে নিই যে এই অপ্রত্যাশিত ফলাফলটি মুদ্রণ থেকে unsigned long long int
। আপনি কিভাবে printf()
একটি unsigned long long int
?