Explain what is the concatenation operator?



Explain what is the concatenation operator?..

Answer / Sarika Chaudhari

In C, the concatenation operator is represented by two adjacent strings without any separator. For example, if we have char str1[10] = "Hello" and char str2[5] = " World", then the concatenated string can be stored in another character array like this: char str3[15]; strcpy(str3, str1); strcat(str3, str2);

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

The differences between Windows XP and Windows Visa

8 Answers   HCL,


In a switch statement, explain what will happen if a break statement is omitted?

1 Answers  


How to establish connection with oracle database software from c language?

1 Answers  


hello friends what do u mean by BUS ERROR i got this error while i am doing my program in DATA STRUCTURES

2 Answers   Wipro,


why arithmetic operation can’t be performed on a void pointer?

1 Answers  


What are compound statements?

0 Answers  


Why c is a mother language?

1 Answers  


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

1 Answers   Subex,


How can you avoid including a header more than once?

1 Answers  


What are loops c?

1 Answers  


Where are local variables stored in c?

1 Answers  


CopyBits(x,p,n,y) copy n LSBs from y to x starting LSB at 'p'th position.

9 Answers   Adobe,


Categories