answersLogoWhite

0

#include
#include
void 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();
}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

How do you concatenate strings in C programming?

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


Write a c program to copy two strings using pointers?

nahi malum


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


C program to concatenate two strings without using library function?

#include<stdio.h> #include<conio.h> void main() { char a[10],b[10],c[40]; int i,j; clrscr(); printf("\n\nENTER FIRST STRING:"); gets(a); printf("\n\nENTER SECOND STRING:"); gets(b); for(i=0;a[i]!='\0';i++) c[i]=a[i]; for(j=0;a[j]!='\0';j++) { c[i]=b[j]; i++; } c[i]='\0'; printf("\n\nTHE COMBINED STRING IS:"); puts(c); getch(); }


How can you do the same thing as the program below but using strings and arrays in C language?

Program below?!


C program to copy two strings in to a new string with out using stringcopy in borland c?

You can use so called concatenation of strings:{...string str1 = "something here";string str2 = " and something here";string newStr = str1 + str2;...}


Can you tell me a C program to find if the strings are equal using pointers?

It is called strcmp, part of the standard run-time library. Returns 0 if the two strings are equals, non-zero otherwise.


Write a program in 'C' language to accept 6 strings as input and print them in lexicographic?

(ab)*b


How do you concatenate input files in C?

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


'c' code to compare two strings using strcmp function?

char one [] = "A string" ;char two [] = "Different String" ;if (strcmp (one, two) == 0){puts ("The two strings are identical") ;}else{puts ("The two strings are different") ;}


What is warning vs error?

Compilers can produce two types of diagnostic messages: errors and warnings. Errors result from issues which cause the compiler to be unable to compile your program. Warnings result from issues that the compiler can deal with, but that you may wish to address in case it affects the logic you intended for your program. Many compilers allow you to disable various warning messages, but this generally isn't recommended. An exception may be a difference between C and C++ where C does not distinguish between character strings and constant character strings ("Hello World"). C++ will regularly issue warnings when you attempt to mix the two, whereas C doesn't care and will happily compile your program regardless.


How do you tune a 6 string ukulele?

It will have the basic G, C, E, A tuning, with the two additional strings. These are paired with the C and A strings. The second "A" string is tuned to the same note as the other "A" string. The additional "C" string is going to be either an octave up or down. The strings in order will be G, C, C', E, A, A.


How do you create program using characters strings in turbo c?

#include int main (int argc, char **argv){printf ("The name of this program is %s\n", argv[0]);return 0;}There's two character-string in this program, a literal and a variable. Go find them.


What is the souce code of a b c and abc in vbnet?

In VB.NET, you can define variables a, b, and c, and then concatenate them to form abc like this: Dim a As String = "a" Dim b As String = "b" Dim c As String = "c" Dim abc As String = a & b & c This code initializes three string variables and uses the & operator to concatenate them into a new string abc.


How c strings are terminated?

c strings are terminated by \0 character


Program to display multiplication of two matrix?

The matrix multiplication in c language : c program is used to multiply matrices with two dimensional array. This program multiplies two matrices which will be entered by the user.


How many strings is there on a cello?

A cello has 4 strings. Cellos are tuned in fifths, starting with C2 (two octaves below middle C) as the lowest string, followed by G3, D4, and A4. It is tuned the same way as the viola, only an octave lower.


How do you write a C program to copy to strings using pointers?

mystrcpy (char* dest, char* src) { while ((*dest++ = *src++) != '\0); }


How do I properly drop C tune my guitar strings?

To properly drop C tune your guitar strings, you need to tune each string down by two full steps. This means lowering each string from its standard pitch to the following notes: C, G, C, F, A, D. Use a tuner to ensure accuracy and avoid over-tightening the strings.