It's always best to actually say what kind of variable you want, instead of letting the compiler do it for you. If you wan a long int, say long, don't just say int. If you want a short int, naturally, you'll specify short. Don't just use 'int' by itself. (I actually do for most stuff here, just because I'm lazy.)
Originally posted by dbaryl
So, in general, which would you use for an integer and which for a decimal? Does it make that much a difference (like using a char for a loop counter)?
Is there really any need to use a double over an float? Rarely do we ever use something over 7 decimal spaces... when would you bother to use the unsigned int over an int?