Home » Concatenate Meaning

Concatenate Meaning

In formal English, the term Concatenate is defined as an operation to join or link something together. The same concept is taken to define the operation of concatenation in computer programming. Computer programmers commonly use concatenation for joining end-to-end character strings.

For example, the concatenation of “Hello” + “World” will fetch you the output as “HelloWorld“. In many programming languages, string concatenation has its own pre-defined function such as concat(), join(), etc., or the coders can concatenate two or more strings in the program using the ‘+’ (plus) operator.

Concatenate Meaning

Note: If you are concatenating a variable of non-string type with a string, you first need to cast that variable into a string.

In this tutorial we will discover how Concatenation is done in different programming languages with the help of examples.

Concatenate in C

1. Using Loops

The first method to concatenate two strings in C is by loops.

Program

You may also like