I am learning how to program and I have the following exercise. I have to initialize different variables with the type of data that contains the smallest number of bits for said variable, at a certain value that they have given us. The fact is that I give failures two types
long and I do not know why:
long milisegundosdesde1970 = 1298332800000; long poblacionmundial = 6775235741;
In the first Netbeans tells me
"integer number too large" and in the second "integer number too large. May split declaration into a declaration and assignment ".
I do not understand in the first where I fail considering that a type "long" is the largest data type for a whole number. As for the second, the same thing happens to me but also I do not understand what about
"May split declaration into a declaration and assignment"