1.

Differentiate between read() and write().

Answer»
read()write()
belongs to the class ifstreambelongs to the class ofstream
used to read binary data from a fileused to write binary data to a file
Syntax: fin.read( (char *) &variable, sizeof(variable));Syntax: fout.write( (char *) &variable, sizeof(variable));


Discussion

No Comment Found

Related InterviewSolutions