|
-
September 18th, 2005, 07:22 PM
#1
Please help newbe with simple algo
Can u tell me when will the end of a program is call if in the middle of the program I will call recursively ???
Bablo!
-
September 18th, 2005, 11:30 PM
#2
Re: Please help newbe with simple algo
I'm sorry to say that I didn't understand you. Please elaborate.
-
September 19th, 2005, 12:23 AM
#3
Re: Please help newbe with simple algo
 Originally Posted by Bablo
Can u tell me when will the end of a program is call if in the middle of the program I will call recursively ???
Bablo!
Recusrsive Program Termonate When the Condition Fail.
In the Mid Reason of Termination can be Wrong Condition.Out of Scope or Some Exceptional Error.that's all
like
Code:
if(i==0)
return 0;
else
return (i*func(i-1));
when condition of i==0 your Function terminate at this point
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|