We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Values, Types, Initialisation
C++Work with initialization, integer types, conversions and auto deduction. Recognize narrowing and signedness issues before they produce incorrect results.
This track uses C++. You can make it your practice mode to browse related content across the site.
4 exercises
Explore freely. Sign in to keep your progress.
Your learning sequence
- 1 Not solved yet. Choose integer width and overflow behavior Practice · Easy
- 2 Not solved yet. Handle signed counts and unsigned sizes Practice · Medium
- 3 Not solved yet. Scale pixel channels safely Practice · Easy
- 4 Not solved yet. Update elements through references Practice · Medium
Check yourself
4 questions · not saved while you're signed outUse these questions to check your understanding and compare explanations. Your score does not affect track completion.
What does this C++20 comparison print?
Choose one answer to reveal the explanations. Answers are kept only while this page is open.
#include <iostream>
int main() {
int s = -1;
unsigned int u = 1;
std::cout << std::boolalpha << (s < u) << std::endl;
}