Character and String
This lesson discusses character and string type.
We'll cover the following...
Character
The variable is used to store a single character value, such as a single digit or a single alphabet. The value assigned to a char variable is enclosed in a single quote(''
) .
Note: Unlike some other languages, a character in Rust takes up 4 bytes rather than a single byte. It does so because it can ...