Ok brother then can you please guide me that what should be the output of
the below program

#include<stdio.h>
#include<conio.h>
void main()
{
    clrscr();
    static count=5;
    printf("\nCOUNT = %d",count--);
    if(count!=0)
        main();
    getch();
}

On Sun, Jul 24, 2011 at 11:54 AM, rajeev bharshetty <[email protected]>wrote:

> Yes, Main() function can call itself, but if called it will recurs e till
> stack overflows or break or ext() statement occurs .
>
> On Sun, Jul 24, 2011 at 11:52 AM, Arshad Alam <[email protected]> wrote:
>
>> can main function call itself?
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
> Regards
> Rajeev N B <http://www.opensourcemania.co.cc>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to