Created
June 27, 2018 05:19
-
-
Save aligalehban/6dcf981f9deb348a8629f50dd39fa2bb to your computer and use it in GitHub Desktop.
Length of String in c++ source code - www.alighalehban.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
string str = "C++ Programming"; | |
// you can also use str.length() | |
cout << "String Length = " << str.size(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment