Discussion
Which of the following function sets first n characters of a string to a given character?
Answer: B
Correct answer: strnset()
strnset(s, ch, n) sets the first n characters of the string to the given character, while strset sets every character to the end. Both are non-standard, from the Turbo C and Microsoft libraries; the portable equivalent is memset.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development