adspace


How do you decide which integer type to use?

Answer Posted / Anjali

When deciding which integer type to use, consider the range of values needed to be stored, the precision required, and the target hardware architecture. If the values are within a certain range (usually -32768 to 32767), an `int` is often a good choice. For smaller or larger ranges, consider using `char`, `short`, `long` or other types.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can union be self referenced?

1267


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1165


What character terminates all character array strings a) b) . c) END

1395


What is the latest version on c++?

1208


daily Routine of father

1485