Arrays and Strings – Multiple Choice Questions (MCQs)
-
-
2. How do you declare an integer array of size 5 in C?
-
3. What is the index of the first element in an array in C?
-
4.
-
5. What is array initialization in C?
-
6. What is a string in C?
-
7. How do you declare a character array to store a string of maximum length 10 in C?
-
8. What is the null terminator in a C string?
-
9. Which standard library function is used to calculate the length of a string in C?
-
10. Which standard library function is used to copy one string to another in C?
-
11. Which standard library function is used to concatenate two strings in C?
-
12. Which standard library function is used to compare two strings in C?