21. What is the purpose of the fgets function in C?
22. What does the strtok function do in C?
23. How do you declare a two-dimensional integer array in C with 3 rows and 4 columns?
24. What is the result of the expression strlen("Hello") in C?
25. Which function is used to find the first occurrence of a character in a string in C?
26. How do you declare a string in C that can store up to 50 characters?
27. What is the purpose of the strncpy function in C?
28. Which function is used to convert a string to an integer in C?
29. What does the fgets function in C do when it encounters a newline character?
30. How can you check if two strings are equal in C?
Read More Section(Arrays and Strings)
Each Section contains maximum 100 MCQs question on Arrays and Strings. To get more questions visit other sections.