1.
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?

4.
void *memcpy(void *dest, const void *src, size_t n) What does the following code do?

5.
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");

7.
What is the function of strcoll()?

10.
What will be the output of the following C code?
int i = 0;
char c;
char str[ ] = "Little Star";
while(str[i])
{
putchar (toupper(str[i]));
i++;
}

Read More Section(Arrays and Strings)

Each Section contains maximum 100 MCQs question on Arrays and Strings. To get more questions visit other sections.