What happens when you declare a counter variable in the For clause versus when you declare a counter variable in a Dim statement?

What will be an ideal response?

When you declare a variable in the For clause, the variable has a block scope and can be used only within the For…Next loop. When you declare a counter variable in a Dim statement, the variable has procedure scope and can be used within the entire procedure.

Computer Science & Information Technology

You might also like to view...

A(n) ________ is a set of formatting characteristics that you can apply to selected text

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following is not a Trojan?

a. Eblaster b. Amitis c. Beast d. HijackThis

Computer Science & Information Technology