C Programming :: Arrays
- If the two strings are identical, then strcmp() function returns
- The library function used to find the last occurrence of a character in a string is
- Which of the following function is used to find the first occurrence of a given string in another string?
- Which of the following function is more appropriate for reading in a multi-word string?
-
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)));
}
-
What will be the output of the program ?
#include<stdio.h>
void main()
{
printf(5+"Good Morningn");
}
-
What will be the output of the program ?
#include
#include
void main()
{
char str[] = "Exam\0Veda";
printf("%s", str);
}
- Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements?
- What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC");