CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

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

Topics

String Length

C++ quiz · Question 10
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}