Programming MCQS - QUESTION DETAILS

What is the role of the 'strcpy' function in C?
A. Concatenate strings
B. Copy strings
C. Compare strings
D. Convert strings

'strcpy' is used to copy strings in C.

Similar Questions

Which method is called automatically when an object is garbage collected?






Which header file is needed for file input and output operations in C?






Which of the following is not a primitive data type in Java?






What is the purpose of the 'strchr' function in C?






Which of the following is a bitwise AND operator in C?






How do you use the 'const' keyword with a pointer in C?






What is the purpose of the 'enum' keyword in C?






What is the output of printf("%d", 5 << 2);?






What is the role of the 'strcpy' function in C?






What is the output of printf("%c", 'A' + 1);?