Variables and Data Types
Declare variables and choose the right numeric type.
2.1Declaring Multiple Variables in One Line in CHow to declare several C variables in one statement (int a, b, c;), initialise them, and avoid the traps: partial initialisation, the pointer asterisk, mixed types and chained assignment.2.2float vs double in C: Precision, Memory, and When to Use WhichHow C's float and double differ in precision, size, range, literals and format specifiers, with real compiler output showing where float goes wrong.
Back to top