Question: QUESTION 1 1 What is the difference in execution between the following two code segments? Example 1 : intCounter = 0 Do While intCounter 1
QUESTION
What is the difference in execution between the following two code segments?
Example :
intCounter
Do While intCounter
IstOutput.Items.AddintCounter intCounter
intCounter intCounter
Loop
Example :
For intCounter
IstOutput.Items.AddintCounter intCounter
Next intCounter
The loop in Example will execute one more time than Example
Example is an infinite loop while Example is not.
Both loops will execute in the same manner.
The loop in Example will never be executed.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
