Skip to main content

Section 20.2 Assign a New Value

Just like the variables we have previously worked with, strings can also be updated after they are initialized.

Investigate 20.3.

We declare strings as arrays of type char, so is it possible to include numbers within these strings? For example, could we declare the following string?
char firstName[] = "Simon1234";