What is the purpose of the memset() function in C?

What is the purpose of the memset() function in C?
A . To find the length of a string
B . To convert a string to uppercase
C . To fill a block of memory with a particular value
D . To compare two strings

Answer: C

Explanation:

The memset() function is used to fill a block of memory with a particular value.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments