-2,147,483,648 to 2,147,483,647?


#1

On what basis the limit of integers taken is decided? So IF youtube used java as a major programming language , despacito would have 2,147,483,647 views ?


#2

That’s the limit for a signed 32-bit integer. 2^32. There are variable types that can hold larger numbers like views on youtube or number of people in the world


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.