Author: Stan Eisenstat
Subject: Re: [Cs223] Automatic local variables and static local variables
Date: Tuesday, 03 Mar 2020, 13:25:39
> 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-PREV INDEX NEXT