2
Answers

Variable defined within "for" loop can't be called outside

Photo of Ameer Wadi

Ameer Wadi

7y
225
1
Hi everyone;
 
I'm just a beginner with C#. When I define a variable inside for loop, it can't be recognized afterwards, as it has been NOT defined within the code. Following picture shows the problem. (Code should work properly but its NOT)
 
 
Thanks in advance,

Answers (2)

1
Photo of Suthish Nair
NA 31.7k 4.6m 12y

Oops, how I missed that :)

Hexaware Technologies
152, Sector-111, Millennium Business Park, 'A' Block, TTC
Industrial Area, Mahape, Navi Mumbai 400-710, INDIA.

Other than Mumbai candidates, forward their resume to Anjalija@hexaware.com.

Remember to update your resume, Referred by : Suthish S Nair (22291)

1
Photo of Praveen Moosad
Admin 44.3k 8.4m 12y
Suthish,

Developers will be benefited by this post.

Please provide the address for this walkin.