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
how to making game in c++ ?
What are the different types of stl containers?
In what scenario does the Logical file and Physical file being used?
Is string part of stl?
Can we use stl in coding interviews?
What is stl language?
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
Why should a c++ programmer be interested in stl?
When did c++ add stl?
How connect plc and pc through software
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
What is a stl vector?
Who created stl?
Is stl open source?
Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A.Explain how a pointer to function can be declared in C++? B.List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header (“Include”) Files.