Question DSA-STR-0021
EasyWhat is the length of the string 'hello world'?
- A.
2
- B.
10
- C.
Show answer and explanation
Answer: C
5 letters + 1 space + 5 letters = 11 characters.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Strings question
What is the length of the string 'hello world'?
2
10
Answer: C
5 letters + 1 space + 5 letters = 11 characters.
11
12