In the video it is typecasting again to long long but since in initial declaration also we have declared it as long long so do we still need to typecast.
Why are we typecasting
Hello @adityamehrotra275 no you cant typecaste long long int again into long long because gcc can support till long long int.
could you please share the screenshot where you are asking about typecasting.
i think in the video where you are asking they must be typecasting because they have not declared that there as long long of type.
that must be the reason i think you should check it again.
Happy Learning!!
Yes Sir then it might not be long long before.
Sir has mentioned the reason as to prevent overflow we are typecasting to long long.
So sir in that case if long long is also overflowing can we do something to prevent overflow.
@adityamehrotra275 if long long is also showing overflow then you have to think of some different logic because then your logic is not optimised.
long long int can andle number with digits upto 18 at max whrereas int can handle the digits upto 9.
Happy Learning!!
Thanks Sir I got it.
Hey @adityamehrotra275 if your query is resolved you can mark this doubt as resolved.
Happy Learning!!
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.