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
What does stl stand for in basketball?
Is string part of stl?
What is stl in c++ with example?
How does an stl file work?
What are the components of stl?
What is the use of stl?
how can u do connectivity in c++ language? plz send me connectivity code in c++ ?
What does stl mean in slang?
What is stl in oop?
how to use C++?
What two types of containers does the stl provide?
In what scenario does the Logical file and Physical file being used?
Why should a c++ programmer be interested in stl?
what is template and type convertion
What is meant by stl in c++?