Look each time you call a function from another function (in general), the
first will be pushed in the stack (dedicated part in the RAM) and after the
second function had been executed then the first will be popped again.

The problem happens when you have  a when you have successive calls Fn1
calls 2 and 2 calls 4 and 4 calls 5 and so on
without putting into your consideration the Stack length, then the stack
will get full and the system will crash.

This in general, in your case this of course happens, as everything the
function is executed, it will be pushed in the stack and calls itself again
and so on until the stack gets full and then the programcrashes.


Also for GOTO, you can use it within the same function freely but don't miss
use by calling a Label outside your function, because the stack will not get
freed until you return from your function.

Here you can use the infinite loop with a break condition, or you a finite
loop with n loops as you like.

I wish I made it clear.

Best regards

Mohsen Deeb


On Sat, Jul 4, 2009 at 10:16 AM, sudheesh.m.m mayanghi chalil <
[email protected]> wrote:

>
>
> thanks
>
> I need more please.
>
>
> [Non-text portions of this message have been removed]
>
>  
>


[Non-text portions of this message have been removed]

Reply via email to