A local C# variable declared in the for loop is in scope in

Skill/Topic: Beginner
A) Body of the for loop
B) The method which includes the for loop
C) Class

Showing Answers 1 - 5 of 5 Answers

arun

  • Dec 8th, 2005
 

A) Body of the for loop   IS CORRECT

  Was this answer useful?  Yes

A is the correct answer...Gets variable does not exist error message, if we try to access it outside the for loop

--Hey guys.. I know you all have done a lot for this forum and have good expertise..This is my first post..please bear with me in case of any inaccuracy.

Thanks-Johnson.

 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions