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 127medium
This function offers the quickest way to determine whether two character sequences of the same known length match character for the character up to and including any null character in both.
Question 128easy
What is the use of function char *strchr(ch, c)?
Question 129easy
. . . . . . . . is reported on a domain error.
Advertisement
Question 130hard
What will be returned in the following C code?
size- t strlen(const char *s)
const char *sc;
for(sc = s; *sc!= ' \ O ' ; ++sc)
return(sc - s) ;Question 131medium
Use . . . . . . . . to determine the null-terminated message string that corresponds to the error code errcode.
Question 132hard
What will be the output of the following C code?
errno = 0;
y = sqrt(2);
if(errno == EDOM)
printf("Invalid value\n");
else
printf("Valid value\n");Advertisement
Question 133medium
What does the following function returns void *memmove(void *s1,const void s2, size_t n);?