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.
Explain what a null character is and why it is important in strings.
Think about what happens if the compiler cannot find the end of a string.
Write a simple code snippet to print 'Hello' character by character using a loop.
Start with a basic loop and remember to check for '\\0'.
What signifies the end of a string in C++?
Think about how string functions behave.
True or False: Strings in C++ are arrays of characters.
Recall the definition of a string.
Develop a function that checks if a string contains only alphabets and no numeric or special characters.
What ASCII values correspond to alphabet characters?
Create a program that retrieves the last word from a given string.
Think about using the reverse traversal ability to identify spaces.
5 more questions in this section. Enroll free to practise them all.
Enroll free