Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Type long long initializing problem
Can't use type long long at all, cause it works like an int. Is long long type has 4 bytes instead of 8?
4 ответов
+ 1
You can check with sizeof(long long).
+ 1
%d is to print a signed decimal integer. Use %ll instead (lowercase L).
0
@zen,
I checked already and it has 8 bytes. But it still works like 4 byte cause when i initialize
Long long a=2147483648;
Printf("%d",a);
the output is -2147483648
Any ideas?
0
Tried ("%ll",a) and now my output is empty.