3 ms·
unsigned short int altitude;
by tomp 13y ago
unsigned short int altitude;
- ghshephard 13y agoThe flight was at 60,000' - You would have to look far and wide for a platform in which "short int" wasn't two bytes. For example, Here is what the compiler for the 8-bit ATMEL Atmega 328 in an arduino does (on a platform with 32KB for program text and 2KB for RAM.) sizeof(bool) == 1 sizeof(short) == 2 sizeof(int) == 2 sizeof(long) == 4 sizeof(long long) == 8 sizeof(void *) == 2
- tomp 13y agoThe flight was at about 60,000 feet , so it could easily have been at slightly more than 216 feet.