PrepAway - Latest Free Exam Questions & Answers

What does Z represent in this code?

Consider the following statement:
for (X; Y; Z)
What does Z represent in this code?

PrepAway - Latest Free Exam Questions & Answers

A.
The counter variable

B.
The loop counter update expression

C.
The condition under which the loop will execute

D.
The highest value that the counter variable may reach

Explanation:

One Comment on “What does Z represent in this code?

  1. Ed says:

    In the statement for (X; Y; Z), Y is the condition under which the loop will execute. X is the loop counter variable initialization expression. Z is the expression that increments or decrements the loop counter.




    0



    0

Leave a Reply