← Back to Question List
C++ Quiz #10
String Length
What is the output of this code?
📄 Code
1#include <iostream>2#include <string>3using namespace std;45int main() {6 string s = "Hello";7 cout << s.length() << endl;8 return 0;9}