• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 16
#include <iostream> #include <string> using namespace std; int main() { int length = 0; string str = "Hello"; for (const auto &i : str) if (i != '\0') ++length; cout << length; } [https://code.sololearn.com/c3XYgIzLHozG]
1st Oct 2017, 9:13 AM
Babak
Babak - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
How do I bridge the gap between learning and doing.
1 Votes
Please help me
2 Votes
How i learn it I feel bhai it's tough some one help me 😐
0 Votes
Game
0 Votes
WHY THEY CHANGED IN LESSONS PRACTICE JUST FOR PRO USERS?
1 Votes
How can I make a note-taking app in Python (NoteNinja Project)?
0 Votes
Please recommend me
0 Votes
chat I wanna make a bullet hell game what language(s) do I need to know?
0 Votes
Dc
0 Votes
how to make sans fight on web language
1 Votes