This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:iot-open:programming_fundamentals_rtu:program_control_structures [2018/05/14 23:59] – kap2fox | en:iot-open:programming_fundamentals_rtu:program_control_structures [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 146: | Line 146: | ||
* if (value == 1); digitalWrite(13, | * if (value == 1); digitalWrite(13, | ||
* if (value == 1) DigitalRead(13, | * if (value == 1) DigitalRead(13, | ||
- | 2. Usually loop ' | + | 2. What is the output of the next code part? |
+ | <code c> | ||
+ | int x = 0; | ||
+ | |||
+ | switch(x) | ||
+ | { | ||
+ | |||
+ | case 1: cout << " | ||
+ | |||
+ | case 0: cout << " | ||
+ | |||
+ | case 2: cout << " | ||
+ | |||
+ | } | ||
+ | </ | ||
3. In which cases ' | 3. In which cases ' |