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 is template and type convertion
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
What are the components of stl?
What is a stl vector?
What is a list in c++ stl?
What is the stl, standard template library?
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
When did c++ add stl?
Explain stl.
Is stl open source?
What is stl in oop?
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
write a program to convert a decimal number in to its equivalent binary number?
How is stl different from c++ standard library?
Is stl part of c++ standard?