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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started