51.
If the two strings are identical, then strcmp() function returns

52.
The library function used to find the last occurrence of a character in a string is

53.
Which of the following function is used to find the first occurrence of a given string in another string?

54.
Which of the following function is more appropriate for reading in a multi-word string?

55.
What will be the output of the program?
#include<stdio.h>
#include<string.h>
void main()
{
    char str1[20] = "Hello", str2[20] = " World";
    printf("%s", strcpy(str2, strcat(str1, str2)));
}

56.
What will be the output of the program?
#include<stdio.h>
void main()
{
    printf(5+"Good Morningn");
}

57.
What will be the output of the program?
#include<stdio.h>
#include<string.h>
void main()
{
    char str[] = "Exam\0Veda";
    printf("%s", str);
}

58.
Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements?

59.
What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC");

60.
int a[5] = {1,2,3}
What is the value of a[4]?

Read More Section(Arrays and Strings)

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