Question
Consider the following C code: #include
#include int main() {   char* text = "The quick brown fox jumps over the lazy dog.";   char* pattern = "fox";   char* result = strstr(text, pattern);   if (result != NULL) {     printf("%ld\n", result - text); // Print index   } else {     printf("-1\n");   }   return 0; } What will be the output of this program?Solution
Correct Answer: A (Indices: T-0, h-1, e-2, ' '-3, q-4, u-5, i-6, c-7, k-8, ' '-9, b-10, r-11, o-12, w-13, n-14, ' '-15, f-16. So 'fox' starts at index 16.)
Who lives on the floor who is immediate above the one who likes Football?
Who among the following person books the ticket at last?
Which of the following statement is true?
How many person(s) live(s) between Esha and Gini?
Who among the following person likes yellow?
Four of the following five are alike in a certain way and hence they form a group. Which one of the following does not belong to that group?
...Who among the following person lives immediate above flat of G?
Four of the following five are vishal in a certain way and hence form a group. Which is the one that does not belong to the group?
Which of the following items is contained in Box 5?
Which of the following statements is true?