Int | SoloLearn: Learn to code for FREE!



What is int? Can somebody explain me?

5/21/2020 5:34:41 PM


3 Answers

New Answer


Tag the language also, in which you need.. And add a code snippet in which you have doubt.. If you want in python in this statement N=int(input()) input takes as string type in value so should casted to needed type.. There int just cast your input to equivalent integer type... And in above post, you have info about what is integer... Hope this helps you..


@Tann Sharma Do not assume that int is 32-bit. It is not defined as such in the language specifcation and it does vary with different compilers.