Trailing Zeroes Function

At 1:36, Prateek bhaiya says that the maximum number of digits we can store in long long int is 18 but I googled and the maximum digit it can store is -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 which is 19 digits. Please help!

Hello @yajurkhurana though i have also read the same but i think you are right because i have just checked doing the same:

Okay. I googled and checked there is also some case with the unsigned long long int. Can you explain that to me?

@yajurkhurana yes ask?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

When do we use unsigned long long int in C++?

hello @yajurkhurana

unsigned long long has higher positive range (almost double) than long long so use unsigned long long in cases where u need to store relatively higher positive number .

range of unisgned long long (64 bit system) ->
0 to 18,446,744,073,709,551,615

range of long long (64 bit system) ->
-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

Ok. Thanks you. My doubt is cleared

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.