Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the null character used for?
Think about how strings are represented in memory.
How do you declare a string in C++?
Remember that a string declaration includes an array of characters.
What is the correct way to declare a string in C++?
Recall how character arrays are defined.
True or False: The null character is represented as '\n'.
Think about the meaning of these special characters.
Write a program to read a string from the user and convert all characters to uppercase.
Loop through the string using a condition for characters until you hit the null character.
Create a program that checks if a string is a palindrome.
To check for a palindrome, compare characters from the start and end moving towards the center.
5 more questions in this section. Enroll free to practise them all.
Enroll free