i get my word "definatly" back On 3/12/07, Paul Herring <[EMAIL PROTECTED]> wrote: > > On 3/12/07, vishal thakur <[EMAIL PROTECTED]<lahsiv.vishal%40gmail.com>> > wrote: > > On 12 Mar 2007 03:07:48 -0700, Amila Perera <[EMAIL > > PROTECTED]<perera.amila%40yahoo.com>> > wrote: > > > > > > C allows to call the main in functions. > > > This has been tested by me under Dev C++ and it works properly. > > > > > > Is this not a bug? > > > Will this give rise to a memory overflow as in the case of a recursive > > > function? > > > Is this fact contradictory with respect to structured programming. > > > > C allows call to main function, you can test it on any platform with any > > compiler (As per my knowledge) > > > > C is very simple language it does not restrict any one doing any thing. > main > > is simply a call to function and their is nothing wrong in it. So for me > > this is not a bug > > > > Definatly memory overflow will occur. > > Erm - why definately? http://www.ioccc.org/1988/phillipps.c (to pick > one at random) is a C program that recursively calls main but doesn't > have a memory overflow problem. > > -- > PJH > Aio, quantitas magna frumentorum est > >
-- Regards Vishal Thakur +919871892410 [Non-text portions of this message have been removed]
