Objectives : File Name : string_compare_strnspn1.cpp (str1.compare(6,5,"World") == 0) str1.substr(6,5) strspn(chstr1, chstr2); strcmp("World","Hello World"); Code:
Objectives :
Step: 1 Create a source file.
Step: 2 Edit and save Source file
Step: 3 Runtime Views:
Step: