Skip to content

Commit

Permalink
Added answer for Q22 (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiklodh committed Jan 25, 2021
1 parent 018b06a commit 1cdabdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c++/c++quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ else{ /_part B_/ }

#### Q.22 What is the meaning of the three sections specified between parentheses in a for loop separated by semicolons?
- [ ] The first is the iterating variable name, the second is the number of times to iterate, and the third is the desired increment or decrement (specified with a signed integer).
- [ ] The first is the initialization block, the second is the condition to iterate, and the third is the increment block.
- [x] The first is the initialization block, the second is the condition to iterate, and the third is the increment block.
- [ ] The first is the iterating variable, the second is the container in which it should operate, and the third is an exit condition to abort at any time.
- [ ] The first is the iterating variable name, the second is the starting value for the iterating variable, and the third is the stop value (the last value plus one).

Expand Down

0 comments on commit 1cdabdb

Please sign in to comment.