Home / MCQ Bank / Computer
Computer File Input Output Difficulty: Medium

What will be the output of the following C code? #include <stdio.h> #include <string.h> int main() { char line[3]; fgets(line, 3, stdin); printf("%d\n", strlen(line)); return 0; }

Select the correct option to test your answer:

More Computer Questions

What will be the word obtained if the word "abbcabb" is reversed using a stack? Which of the following css propery defines a relationship between bound elements(s) and some code or content? What is the output of the following code: cout << (5 != 5); in C++? Which one of the following function reads a directory into an Array? Which of the following is the short form of Threshold logical unit?