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



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

Answer / 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

More C Interview Questions

Explain union.

1 Answers  


Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line.

4 Answers   Persistent, Subex,


What is meant by preprocessor in c?

1 Answers  


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

1 Answers  


What is Bitwise Operator and how it works?

1 Answers  


int main() { int days; printf("enter days you are late"); scanf("%d",days); if (days<=5) printf("5o paisa fine"); if (days<=10&&days>=6) printf("1rs fine"); if(days>10) printf("10 rs fine"); if(days=30) printf("membership cancelled"); return 0; } tell me whats wrong in this program? is it right?

2 Answers  


What does struct node * mean?

1 Answers  


What does emoji p mean?

1 Answers  


What is an auto variable in c?

1 Answers  


Write a program to identify if a given binary tree is balanced or not.

1 Answers   JPMorgan Chase,


Difference between fopen() and open()?

3 Answers   Aricent,


What is queue in c?

1 Answers  


Categories