answersLogoWhite

0

#include<iostream>

#include<string>

int main()

{

using std::string;

string a = "hand";

string b = "bag";

string c = a + b; // concatenation

}

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

How do you concatenate two strings without using strcat?

Example1:sprintf (to, "%s%", from1, from2);Example2:size_t len1= strlen (from1);memcpy (to, from1, len1);strcpy (to+len1, from2);


What is the importance of using functions in a c program?

C programs do not function without functions.


What is the importance of functions in a c plus plus program?

Functions are very important in C++, as you can't write the simplest program to print hello without using a function. Overall you can say that function are building blocks of a C++ program. Functions can also be defined by the programmer to reduce program size.


Can you compile program without header file?

Yes,we can compile our program without header file without any error,but we can not use any predefine functions like printf,scanf.


What is a program for finding sqareroot of a number without using functions?

you read the book how to solve by dromy.


How do you link a C plus plus program to C functions?

It should work without any special action.


where can I find business grants without government strings attached?

where can I get a business grant without government strings attached?


How do you get a char from the keyboard in your C program without waiting?

OS-dependent. For DOS use functions kbhit and getch from conio.h


Write a program in C without any functions?

It is not possible. In C, any program must have at least one function to be able to compile and execute properly: the function main()


How many functions in c progamming?

One or more. (In other words: you cannot write a program without at least one function.)


How can I play the guitar without touching other strings?

To play the guitar without touching other strings, you need to focus on your finger placement and technique. Use the tips of your fingers to press down on the strings you want to play while being careful not to touch the neighboring strings. Practice precision and control to improve your ability to play without touching other strings.


What is the most important part of the violin?

Well I think the strings are as you cannot play the violin without the strings. from the belt man. Also the sound post in the violin is a major player in the sound making process