DEV Community

loading...

Discussion on: String in C

Collapse
sanskrati01 profile image
Sanskrati Jain Author

The first and the third way are the same except one is easier to type. So the comment for the third is also valid for the first.
And yes, it will not include '\0' in length. It reduces the length by 1 but it is still there.