When you know that a value will be very small (single digit), wouldn't it make sense to use Int16 instead of Int32? It seems that the least amount of memory required for every variable would be preferable.
kahaj
0
Junior Poster
Recommended Answers
Jump to PostYour question really depends on the application you are using to really determine whether or not worrying about an int (singed/unsigned, 16/32/64) needs to be typed.
Are you minimizing memory for an embedded or mobile app? If so, paying attention to details like that can be important. Otherwise, just …
All 3 Replies
paisleyboxers
5
Newbie Poster
kahaj
commented:
good advice
+5
sknake
1,622
Senior Poster
Featured Poster
kahaj
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.