4 ms·
On x86 systems like 8086 short and int were the same size. And that appears to be a footnote they've added after being called out for being wrong. The question
by veltas 4y ago
On x86 systems like 8086 short and int were the same size. And that appears to be a footnote they've added after being called out for being wrong. The question gives "implementation defined" as an option and in other questions seems to specify the ABI, and in some assumes it without saying again. Very inconsistent, they should fix their quiz really.
The last x86 processor I know of to have these sizes is 80286.
- galangalalgol 4y agoAvr microcontrollers still have 16bit ints, probably 8051 and pic too, but I don't use those. Lots of people do though. TI dsp uses 48 bit long, so don't count on int and long being the same either.