Description:
What is a string in C? A string is just an array of characters. Each letter sits in its own memory cell, one after another, and C adds one extra character at the end: the null terminator, \0. That's why Hello needs six slots, not five. The null terminator tells functions like printf where the string ends. Strings use double quotes, while single characters use single quotes. strlen counts the letters but not the \0, and if you forget the terminator, functions run past the end into garbage. Follow 40 Sec Preparation for more programming concepts! #shorts #cprogramming #strings #coding
Share this link via
Or copy link























