Skip to content

Control structures

Control structures let programs make decisions (conditionals) and repeat actions (loops). They underpin most Partial I exercises.

Official material: Lenguaje C (Prof. Colombo)

See the Spanish version for full examples of if-else, switch, for, while, and do-while, aligned with the professor’s slides.

Interactive exam

Control structures

Based on: Lenguaje C — Prof. Maria Ines Colombo

0 of 0 answered

if-else is used to...
In C++, switch compares the variable with values of type...
A for loop is useful when...
The key difference of do-while vs while is that...
What is break for inside a switch?