Write a program in C++ to concatenate two strings into third
string using pointers

Answer Posted / irshad

#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
char str1[50],str2[50];
cout<<"\n enter first string \n";
cin>>str1;
cout<<"\n enter second string \n";
cin>>str2;
cout<<"\n the concatenated string is \n"<<str1<<str2;
getch();
}

Is This Answer Correct ?    28 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is template and type convertion

1999


Describe the My Computer and My Documents folders; identify the elements that are present in every Window.

1859


What are the components of stl?

626


What is a stl vector?

628


What is a list in c++ stl?

696






What is the stl, standard template library?

600


help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase

1885


When did c++ add stl?

740


Explain stl.

907


Is stl open source?

636


What is stl in oop?

681


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

2863


write a program to convert a decimal number in to its equivalent binary number?

2084


How is stl different from c++ standard library?

746


Is stl part of c++ standard?

645