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]; FILE *fp; fp = fopen("newfile.txt", "r"); while (fgets(line, 3, fp)) fputs(line, stdout); return 0; }

Select the correct option to test your answer:

More Computer Questions

A small button with three dots usually displayed at the right of field properties box In Python, how can you check if an element exists in a list? The term MIPS refers to _____ What is the result of round(3.75) ? Determine output of the following program. public class Test{ public static void main(String args[]){ System.out.println( Math.floor( Math.random( ) ) ) ; } }