answersLogoWhite

0

Write a program in C to concatenante 2 strings?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

Here is very small application written in C, that concatenates strings.

#include

#include

int main() {

char str[100];

strcpy(str, "Hello ");

strcat(str, "World!");

printf("%s\n", str);

return 0;

}

The result is "Hello World!".

Concatenation is done by function strcat which is defined in string.h.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program in C to concatenante 2 strings?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a program to convert a 2 digit BCD number into hexadecimal number?

Write a program to convert a 2-digit BCD number into hexadecimal


2 Write a program to convert a 2-digit BCD number into hexadecimal?

WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL


Could you Write a program for 8086 microprocessor that displays on the monitor the average of 2 numbers from an array?

How to write a program for mouse in microprocessor?


Write a c program for false position method?

Write a simple program in finding roots x^3-6x^2+11x-6.1=0


How do you make thin friendship bracelets?

You can get 2 purple strings 2blue strings and 2 green strings and braid them together.


Write a program adding 2 plus 2 in c program?

#include <stdio.h> int main (void) { puts ("4"); return 0; }


Who did Mozart write his piano concerto in G major for?

Piano, flute, 2 clarinets, 2 bassoons, 2 French horns, and strings.


How many strings are on mandola?

Originally, the mandolin had 6 strings. Later designs included 8 strings (4 pairs) and the strings were plucked with a plucktrum. Other designs have multiples of 4 strings, up to a maximum of 16 strings.


How do you tune a bandurria?

Banduria is tuned (from high to low): G (3 strings in unison) D (3 strings in unison) A (3 strings in unison) E (2 strings in unison) B (2 strings in unison) F# (1 string)


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


Write a javascript program out of three no which one s greater?

1 2 3


How much strings does a balalaika have?

It generally has 3 strings. but it is possible to find some with 4,5 or 6 strings.