Skip to content

Glossary: C Basics

Lifetime

How long a variable's memory belongs to it. Stack variables last until their function returns, and heap memory lasts until free.

Where the book teaches it

Related terms

StackHeap