Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous Difficulty: Medium

What will be the output of the following C++ code? #include int main () { FILE * p; long size; p = fopen ("test.txt", "rb"); if (p == NULL) perror ("Error opening file"); else { fseek (p, 0, SEEK_END); size = ftell (p); fclose (p); printf (" %ld\n", size); } return 0; }

Select the correct option to test your answer:

More Computer Questions

Which is the new attribute of <input> element that is used to change the appearance of checkbox? MS Excel provides the default value for step in Fill Series dialog box Which of these method of class StringBuffer is used to find the length of current character sequence? What is the primary function of the Hadoop MapReduce "Map-side Join" technique? How is the for loop different from the while loop in R?