File Input Output - Study Mode
[#201] What will be the value of var for the following C statement? var = strcmp("Hello", "World")
Correct Answer
(A) -1
[#202] What will be the output of the following C code? #include <stdio.h>
#include <ctype.h>
int main()
{
char c = 't'
printf("is :%c
", tolower('A'))
}
Correct Answer
(B) a
[#203] Which mathematical function among the following does NOT require int parameters?
Correct Answer
(C) sqrt(x)
[#204] Which pre-defined function returns a pointer to the last occurence of a character in a string?
Correct Answer
(B) strrchr(s, c)
[#205] Select the correct value of i from given options i=scanf("%d %d", &a, &b)
Correct Answer
(B) 2