3 ms·
Unlike Java for example, C is very lax about what the different types mean. In particular, there is no guarantee about the size of int/double except that it is
by kbolino 13y ago
Unlike Java for example, C is very lax about what the different types mean. In particular, there is no guarantee about the size of int/double except that it is at least as large as short/float respectively. Some implementations of the standard library impose a requirement that DBL_DIG in float.h be no less than 10, which avr-gcc fails to satisfy, but I don't believe the core language imposes that requirement.
- tsotha 13y agoI was delighted to start programming in java way back when just for this reason. Writing truly portable C code really requires #defines for all the basic types, which is really ugly.