Search⌘ K

Strings

Explore how strings are represented in C as null-terminated arrays of characters. Learn to declare, access, and modify strings safely, understand the role of the null character, and prepare for practical use of C standard library string functions through hands-on exercises.

We'll cover the following...

String is one of the most popular data types in programming. To be honest, it’s slightly awkward dealing with character strings in C, especially when compared to languages like Python.

A collection of characters grouped together forms a string. We have seen earlier how constant character strings are written inside double-quotation marks as opposed to character constants that are declared using ...