Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recursive Method calls in C#
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Recursive Method calls in C#
Miscellaneous
Thread ID:
00961245
Message ID:
00961245
Views:
38
Is it possible to call a Method from within a method and are Variable retained from Calling Method:
e.g.

class myclass()
{
public counter
counter = 0

MyMethod(int y);
{
int x
x=y+1
if (counter < 10)
{
MyMethod(x);
}
}
}

Are each of the x local to each recursive call , ot is the variable x the just taking up the same area in memory for each call



Regards,
Gerard
Next
Reply
Map
View

Click here to load this message in the networking platform