Example
private void fn1(int x, int y)
{
Your statements;
// for some reason you want to pull out at the beginning itself
return;
..........
....
// if you want to exist function
return;
}
Example
private int fn1(int x, int y)
{
int i=0;
Your statements;
..........
// For some reason you want to exit here
return i;
....
// if you want to exist function
return i;
}
|