Page 1 of 1

what does integer mean?

Posted: Sat Feb 05, 2005 11:13 pm
by simondhaka
often i see in problems that input number is integer. then how should I declare my veriable?
what does integer means
a. int
b. long
c. unsigned long
d. unsigned int
e. long long int

plz help me...I m new programmar....

Posted: Sun Feb 06, 2005 12:21 am
by misof
By "integer" the author usually means that the numbers fit into a 32-bit signed type. In UVA's gcc, both int and long are signed 32-bit. Still, I would advise you to use long long if not sure.

P.S.: please use bold letters only to emphasize things, not for the whole post :wink: