24.12.2012 Views

CSC322 C Programming and UNIX - Department of Computer ...

CSC322 C Programming and UNIX - Department of Computer ...

CSC322 C Programming and UNIX - Department of Computer ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Persistent Local Variables: static again<br />

static local variables have unlimited lifetime<br />

– They are initalized the very first time they come into scope<br />

– They are shared between different calls to the same function<br />

– They keep their values in between calls<br />

– However, they can only be accessed from inside their corresponing block<br />

Stephan Schulz 179

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!