Strings are char arrays
A C string is an array of chars that ends with a 0 byte. See why strlen and sizeof disagree, and why the array needs one extra box.
Premium
Inside: 2 short explanations, a runnable example and 1 checked exercise.
See Premium£7.99 a month. Already Premium? Sign in