Practice mode C Language

Which character marks the end of a string in C?

Correct answer A. '\0'

Explanation

C strings are arrays of characters terminated by the null character '\0'. Library functions such as strlen() and printf() rely on it to find the end.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.