Skip to content
← All tracks

Values, Types, Initialisation

C++

The layer everything else sits on, and the one where C's defaults are still wrong forty years later. Fixed-width integers, narrowing, signedness, and what `auto` actually deduces.

This track is written for C++, which isn't the mode you're browsing in.

0 / 4 solved
  1. 1. Not solved yet. int is not a width
  2. 2. Not solved yet. The comparison that is always true
  3. 3. Not solved yet. Braces refuse to lose your data
  4. 4. Not solved yet. auto copies, and does not say so

Check yourself

4 questions · one attempt each

These do not count toward finishing the track. They are here to catch the things that are easy to read past.

0 / 4

What does -1 < 1u evaluate to?

int s = -1;
unsigned u = 1;
s < u;
Question 1 of 4