answersLogoWhite

0

How do you concatenate strings in C programming?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

strcat if u wnt to use strcat then include string.h header file

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you concatenate strings in C programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What character allows you to concatenate strings in PHP?

To concatenate strings in PHP, you use the . (dot) character. For example: $str = "String1" . "String2";


A Write the algorithm to concatenate two given strings?

a write the algorithm to concatenate two given string


Which sign is used to concatenate two strings?

That depends on the programming language. Most languages use the "+" sign, but a few use other signs. For example, PHP uses the dot.


What symbol is use to join strings?

Language dependent. In C, for example, there no string as such, but you can use function strcat to concatenate zero-terminated character-sequences.


What is concatenate function in c?

strcat


What is mean by file handling in C programming?

There is a quite a lot of things you can do with files; some of them are: open, read, write, close, delete, copy, move, rename, concatenate, sort...


What is it called when you add up letters?

concatenate is the operation of joining two character strings end to end. For example, the strings "snow" and "ball" may be concatenated to give "snowball".


What purpose do strings serve in programming?

Strings are a type of variable in computer programming. Simply put, they contain multiple characters which are "strung" together to make a piece of text. "Test", "House", and "Hello World!" are all excellent examples of what might be contained in a string. As a result, strings are used to store and convey any textual information.


What is operator over loading?

Same operator can be used for different purposes like + can be used for addition of two integers and used for concatenate strings.


C program to concatenate two strings?

#include#includevoid main(){char a[30],b[30];clrscr();printf("Enter the string a:");gets(a);printf("Enter the string b:");gets(b);printf("%s",strcat(a,b));getch();}


How do you concatenate input files in C?

Copy one file, then append the other to the copy.


How c strings are terminated?

c strings are terminated by \0 character