Arrays and Strings MCQs

133 questionsC-ProgramPage 2 of 15

Practice free Arrays and Strings multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 133 questions — no login required.

Question 10easy
What character is used to terminate a C string?
Question 11easy
Which data type is used to represent a single character in C?
Question 12easy
How can you initialize an array in C at the time of declaration?
Advertisement
Question 13easy
What is the output of printf("%d", sizeof("Hello")); in C?
Question 14easy
Which function is used to concatenate two strings in C?
Question 15easy
What is the correct way to declare and initialize a string in C?
Advertisement
Question 16easy
What is the term for a character array that is used to store text in C?
Question 17easy
How can you find the length of an array in C?
Question 18easy
What is the result of the expression sizeof(int) in C?