What string handling function is used to concatenate two strings in C?
- sprintf()
- strcat()
- strcmp()
- strcpy()
In C, the strcat() function is used to concatenate two strings. It appends the characters of the second string to the end of the first string.
Loading...
Related Quiz
- You're developing a program to calculate the area of a circle. What data type would be most suitable to store the radius, considering it can be a fractional value?
- In a C program, you notice that data written to a file is not immediately visible on the disk. What could be a reason for this delay?
- In an application that writes user data to a text file, what precaution should be taken to avoid data corruption or loss?
- How can you determine if you have reached the end of a file while reading it in C?
- What is the primary use of the fseek function in file handling?