adspace


Explain about the functions strcat() and strcmp()?

Answer Posted / Ramniwash Singh Yadav

The strcat() function in C concatenates two strings by appending one string to the end of another. The resulting string is stored in the destination string, which should be large enough to accommodate both strings. The strcmp() function compares two strings and returns 0 if they are equal, otherwise it returns a non-zero value that shows the difference between them.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2826


What are compound statements?

1289


what is ur strangth & weekness

2588


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1614


develop algorithms to add polynomials (i) in one variable

2258


What is variable initialization and why is it important?

1391


How can I implement sets or arrays of bits?

1117


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

2397


Is int a keyword in c?

1057


write a program to find out prime number using sieve case?

2174


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1942


write a c program to find the sum of five entered numbers using an array named number

2244


What is dynamic dispatch in c++?

1137


What is the difference between union and anonymous union?

1397


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1295