Tuesday, July 14, 2009

Which is faster, int or a short?

Which is faster, an integer counter or a short?

Counting range [0 .. 32767]
int int_counter ;
short short_counter ;

Scope: Desktop & Server OS (32 Bit)

i think this is OS dependent...
int is minimum as long as short int and long int is minimum as long as int
so it depends on the implementation...

What is Your Answer?

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.