What's wrong? for (int k = 2, k <=12, k++) | CPP MCQs

a. the increment should always be ++k
b. the variable must always be the letter i when using a for loop
c. there should be a semicolon at the end of the statement
d. the commas should be semicolons

Ans: d

0 comments:

Post a Comment

Blogger news