Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336
We should not read after a write to a file without an intervening call to fflush(), fseek() or rewind() ?->(Show Answer!)
Question Set

1. We should not read after a write to a file without an intervening call to fflush(), fseek() or rewind()



Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 01 Jun 2017 06.02 pm
    True, we should not be able to read a file after writing in that file without calling the below functions. int fflush ( FILE * stream ); If the given stream was open for writing and the last i/o operation was an output operation, any unwritten data in the output buffer is written to the file. int fseek ( FILE * stream, long int offset, int origin ); Its purpose is to change the file position indicator for the specified stream. void rewind ( FILE * stream ); Sets the position indicator associated with stream to the beginning of the file.
Show Similar Question And Answers
QA->There are 4000 literates in a village.45 % read Newspaper A and 65% read Newspaper B.25% read neither A nor B.How many persons read both the newspapers?....
QA->As per the Constitution of India, the intervening period between two sessions of Parliament should not be more than–....
QA->Old-written material; which cannot be read easily; how can be read?....
QA->Old-written material, which cannot be read easily, how can be read?....
QA->The extension jpeg in the name of a file indicates that it is a/an file.....
MCQ->We should not read after a write to a file without an intervening call to fflush(), fseek() or rewind()....
MCQ->Read the following statements about files in Pascal A file can grow or shrink dynamically.A file which consists of only characters is called text file.Text files may be read and written using standard Pascal READ and WRITE procedures.Every file must have a beginning but may or may not have an end. Which of the above are correct?....
MCQ->If the file 'source.txt' contains a line "Be my friend" which of the following will be the output of below program? #include<stdio.h> int main() { FILE fs, ft; char c[10]; fs = fopen("source.txt", "r"); c[0] = getc(fs); fseek(fs, 0, SEEK_END); fseek(fs, -3L, SEEK_CUR); fgets(c, 5, fs); puts(c); return 0; }....
MCQ->Which of the following statements regarding literacy in India are correct?1. A person who can only read but cannot write is not defined literate 2. Children below 7 years of age are not taken into consideration even if they are able to read and write 3. For the purpose of census, a person is deemed literate if he or she can read and write with understanding in any of the 22 languages mentioned in the Eighth Schedule of the Constitution 4. The fact that a district has attained hundred percent literacy does not mean that the entire population in the district is literate?....
MCQ->Which of the following statements regarding literacy in India are correct:1. A person who can only read but cannot write is not defined literate. 2. Children below 5 years of age are not taken into consideration even if they are able to read and write. 3. For the purpose of census, a person is deemed literate if he or she can read and write with understanding in any of the 22 languages mentioned in the Constitution. 4. The fact that a district has attained hundred percent literacy does not mean that the entire population in the district is literate.?....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution