Author: Unknown
Subject: Re: Re: [Cs223] Automatic local variables and static local variables
Date: Tuesday, 03 Mar 2020, 16:04:35
> > Message Posted By: Unknown > > > > What are the differences between automatic local variables and static > > local variables? >Automatic local variables are allocated on the stack and >thus their values are lost when the function exits. >Static local variables are allocated in the data segment >and thus their values are retained from one call to the >next. >--Stan- What's the point of having persistent values in variables that only have block scope?PREV INDEX NEXT