Question: what is the difference between get and getline in c++?
Answer: get() extracts char by char from a stream and returns its value (casted to an integer) whereas getline() is used to get a line from a file line by line. that is gets does the work letter to letter and whereas in the case of getline does it in line by line format .