imkost
0
Q:

convert entire string to lowercase c++

    // sl is the string which is converted to lowercase 
    string sl = "Jatin Goyal"; 
  
    // using transform() function and ::tolower in STL 
    transform(sl.begin(), sl.end(), sl.begin(), ::tolower); 
3
// Include #include<bits/stdc++.h>
string s = "Jatin Goyal"; 
// using transform() function and ::tolower in STL 
transform(s.begin(), s.end(), s.begin(), ::tolower); 
3

New to Communities?

Join the community