Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cpp/en] String length content addition (#4888)
* Add string.length() and string.size() example line Adds a line under the Strings section to add total string length by calculating the sum of two strings which have been given on output above with their sizes found out using string::length() and string::size() functions, with appropriate comment on this line. Signed-off-by: Harshit Gupta <[email protected]> * Add cstring strlen() example Includes <cstring> header to demonstrate length of a character array string which is C-compliant by using strlen() function available from this header supported in C++. Declared string is initialized with char array size [10] to just fit the string contents with '\0' terminator. Signed-off-by: Harshit Gupta <[email protected]> --------- Signed-off-by: Harshit Gupta <[email protected]>
- Loading branch information