Let Us C Solution | Chapter 15 Strings | How to initialize a String in C?
Duration: 5:11 Min | Sep 10, 2023
There are four ways to initialize a string in C:
Assigning a string literal with size
This is the most common way to initialize a string. The string literal is enclosed in double quotes, and the size of the array is one more than the number of characters in the string literal.