1.

Give the functions of the following:get ()getline()read()

Answer»

1. get() function is used to read a single character from the associated stream.

2. getline () function is a string I/O function that is used to read a whole line of text to text files.

3. read() function is used to read binary data from a file.



Discussion

No Comment Found

Related InterviewSolutions