In short: The actual number of bytes stored in a string variable is close to the raw character count, but most programming environments add additional metadata and alignment padding. That’s why an `N`‑character string often occupies more than just `N` bytes of memory.