search
Q: Which of the following function sets first n characters of a string to a given character? निम्नलिखित में से कौन सा फंक्शन किसी दिये गये वर्ण के लिए स्ट्रिंग के पहले n वर्ण सेट करता हैं?
  • A. Strcset ( )
  • B. Strnset ( )
  • C. Strset ( )
  • D. Strinit ( )
Correct Answer: Option B - Strnset फंक्शन किसी दिये गये वर्ण के लिए स्ट्रिंग के पहले n वर्ण सेट करता हैं। Strnset function- Role- The strnset function sets the first n characters in a string to a specific character. Inputs- A string, a character and an integer value n Output- The strnset function sets the first n characters in a string to the given character and returns a pointer to the string.
B. Strnset फंक्शन किसी दिये गये वर्ण के लिए स्ट्रिंग के पहले n वर्ण सेट करता हैं। Strnset function- Role- The strnset function sets the first n characters in a string to a specific character. Inputs- A string, a character and an integer value n Output- The strnset function sets the first n characters in a string to the given character and returns a pointer to the string.

Explanations:

Strnset फंक्शन किसी दिये गये वर्ण के लिए स्ट्रिंग के पहले n वर्ण सेट करता हैं। Strnset function- Role- The strnset function sets the first n characters in a string to a specific character. Inputs- A string, a character and an integer value n Output- The strnset function sets the first n characters in a string to the given character and returns a pointer to the string.