Back to Multiple Choice Quiz
String Length
C++ quiz · Question 10What 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}