Declaration within a loop.

Dinh Vu dvu at prism.gatech.EDU
Wed Sep 27 14:33:30 AEST 1989


Declaration within a loop:
-------------------------

     do {
		 int i;

		 ........ ;
		 ........ ;
		 ........ ;

     } while (1);

Is it true that every time through the loop, a new i variable
is declared (more memory allocated ??)?  Or the same i variable
is reused...  I see something similiar to this in the GNU 'make' 
source code.  Also, if I run the code above long enough, will it 
take all memory.  Thanks.


Dinh Vu <dvu at prism.gatech.edu>



More information about the Comp.lang.c mailing list