The explanation is correct. But it is represented by choice (A) Body of the for loop.
a local variable in c# which is declared in for loop is in local scope as for as the body of loop closes the scope closes too
A local variable in c# which is declared in 'for' loop is in local scope as long as the body of loop closes the scope closes too
Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.
Copyright ©2003-2009 CoolInterview.com, All Rights Reserved. Privacy Policy | Terms and Conditions Page URL: http://www.coolinterview.com/interview/8995/default.asp?cachecommand=bypass