Here is the simple program for printing string character change using String in C++.
#include<iostream> #include<string.h> using namespace std; int main() { string word="Ram"; word[0]='S'; cout<<"\n"<<word; return 0; }To download raw file Click Here
Sam
Learn All in Tamil © Designed & Developed By Tutor Joes