Question: Using C++ . Please solve it right. .Do the following code for your English first name, last name. Do for your true name. I shall

Using C++ . Please solve it right. .Do the following code for your English first name, last name. Do for your true name. I shall check with your name from the TU system inshaAllah.

This code is given for my name, you do it for your name

Then give output

Sample code:

##include

#include

using namespace std;

int main(void)

{

char fn[20] = "Masud"; // give your true English first name here

char ln[20] = "Hasan"; // give your true English last name here

char fulln[50];

// copy all characters of fn to fulln

fulln[0] = fn[0];

fulln[1] = fn[1];

fulln[2] = fn[2];

fulln[3] = fn[3];

fulln[4] = fn[4];

fulln[5] = ' '; // give a gap

//copy all characters from ln to fulln

fulln[6] = ln[0];

fulln[7] = ln[1];

fulln[8] = ln[2];

fulln[9] = ln[3];

fulln[10] = ln[4];

fulln[11] = '\0'; // terminate

cout << "First Name: " << fn << " ";

cout << "Last Name: " << ln << " ";

cout << "Full Name: " << fulln; // output

}

Put your code here:

Put your screen picture here:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!