Arrays and Strings MCQs
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 100medium
. . . . . . . . tells the compiler that this data is de?ned somewhere and will be connected with the linker.
Question 101easy
Which of the following is the right syntax to copy n characters from the object pointed to by s2 into the object pointed to by s1?
Question 102medium
The isdigit function tests for any decimal-digit character.
Advertisement
Question 103medium
which of the following function returns a pointer to the located string or a null pointer if string is not found.
Question 104medium
void *memcpy(void *dest, const void *src, size_t n) What does the following code do?
Question 105hard
What will be the output of the following C code?
errno = 0;
y = sqrt(-10);
if(errno == EDOM)
printf("Invalid value \n");
else
printf("Valid value\n");Advertisement
Question 106medium
This function checks whether the passed character is white-space.
Question 107easy
What is the function of strcoll()?
Question 108medium
isalpha() function is used to detect characters both in uppercase and lowercase.