Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

Program Discussion :: Strings

Home > Programs > Strings

74 / 59

Write an efficient program to find the length of a string.

Answer:

#include 

using namespace std;
int main()
{
    string str = "C++ Programming";
    /* you can also use str.length() */
    cout 

Asked In ::

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here: