CJCoding With Joseph
15per day
← Back to Question List

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics:
C++ Quiz #10

String Length

easyStrings

What is the output of this code?

📄 Code

1#include <iostream>
2#include <string>
3using namespace std;
4 
5int main() {
6 string s = "Hello";
7 cout << s.length() << endl;
8 return 0;
9}