This C++ code defines three strings Name1, Name2, and fullName. It then appends Name2 to Name1 using the append() method and stores the result in fullName. Finally, it prints out the value of fullName using cout.
Here's a step-by-step breakdown of what happens in the code:
#include<iostream> #include<string.h> using namespace std; int main() { string Name1 = "Tutor "; string Name2 = "Joes"; string fullName = Name1.append(Name2); cout<<"\n"<<fullName; return 0; }To download raw file Click Here
Tutor Joes
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions