what does integer mean?

Write here if you have problems with your C source code

Moderator: Board moderators

Post Reply
simondhaka
New poster
Posts: 4
Joined: Sat Nov 13, 2004 12:17 pm
Location: Dhaka,Bangladesh
Contact:

what does integer mean?

Post 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....
~- Blessed is he who expects nothing. For that he shall not be disappointed -~
misof
A great helper
Posts: 430
Joined: Wed Jun 09, 2004 1:31 pm

Post 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:
Post Reply

Return to “C”