Top "C-strings" questions

A string in the programming language C is represented as a sequence of characters followed by a null terminator (represented as \0).

Why use c strings in c++?

Is there any good reason to use C-strings in C++ nowadays? My textbook uses them in examples at some points, …

c++ c stl string c-strings
What does s[i] - '0' mean?

The following code is from K&R textbook, page number 71: val =10.0*val+s[i] -'0' What does s[…

c char c-strings digits