Concept Flow - String Basics and Memory Representation
Create String variable
Allocate memory for characters
Store characters in contiguous memory
Keep track of length and capacity
Use pointer to access characters
Modify or read characters via pointer
Deallocate memory when String goes out of scope
This flow shows how a String variable is created, memory is allocated to store characters contiguously, length and capacity are tracked, and how the pointer accesses the characters until the String is dropped.
