John Matthews wrote: > --- In [email protected], "odbapsvm" <[EMAIL PROTECTED]> wrote: >> Does anyone know what happens if you call >> main from main and end up with an infinite loop? > > int main(void) > { > return main(); > } > > Compiled using gcc 3.4.6 under linux (CentOS 4). When run: > > Segentation fault > > What an anti-climax! I thought it would be much more interesting than > that :-)
Seg. fault - specifically, a stack overflow. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
