answersLogoWhite

0


Best Answer

This function is virtually identical to get(buf, num, delim) version of get ( ). The difference between get(buf, num, delim) andgetline ( ) is that getline ( ) reads and removes the delimiter new - line character from the input stream if it is encountered which is not done by the get ( ) function. Following figure explains the difference between get ( ) and getline ( ) functions :

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Discuss various forms of get function supported by the Input stream How are they used?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What are the functions of lexical analyzer?

The lexical analyzer function, named after rule declarations, recognizes tokens from the input stream and returns them to the parser.


What is fflush?

The fflush() function writes any buffered data to the specified file stream. When you write data to a file (with a function such as fprintf()), it is actually placed in a memory buffer. The data is only actually written to the file when the buffer is full, the file stream is closed or when fflush() is called.


What is the purpose of a getchar function?

The getchar() function gets a single character from stdin. Here is a very basic example: #include <stdio.h> int main() { char ch; do { ch = getchar(); putchar(ch); } while (ch != ';'); return 0; } It reads from data you input and prints it again of the screen after you press key. It works until it reaches ";" symbol. The getchar() function is equivalent to getc(stdin).


What is seekg?

In C++, seekg is a method/function of the standard fstream library (fstream::seekg()) which allows you to position the 'get' pointer to an arbitrary position within the stream.


What is the function on endl in c plus plus?

std::endl means end line, and is typically used to insert a new-line character in an output stream using the insertion operator (<<). This is really no different to inserting the '\n' character code to the output stream, however it also serves to flush the output buffer by writing all unwritten characters to the output stream. When used as a global function, std:endl(ostream& OS) can be used to insert a new-line character and flush the given output stream. The return value is a reference to the output stream itself thus it can be used in compound statements that make use of the return value.

Related questions

What is the function of blood streem?

The function of blood stream is to help in transportation of various substances accros the body.


What important function do stream pools serve?

One important function that stream pools serve are as an aquatic ecosystem habitat. They are also use for the juvenile fish.


What does the fread function do in most programming languages?

In programming the fread function reads nmemb elements from the stream by stream and stores them in PTR. it is a very helpful function for any software programmer who cares about his time investment in his work.


What is the physiological function of Nitrogen in the blood stream?

help pl0x


What is fwrite function in c language?

writes data to a FILE* stream.


What is the use of printf and scanf function?

Printf prints something to the standard output stream, and scanf inputs something from the standard input stream.


What is the function of the main stem bronchi?

To enable the stream of air reach the lungs.


Why do you want science stream in 11th?

science is a very intresting stream u can always go with.there r various careerer options in science


What does it mean if your urine comes out too hard?

There is no disease that has a sign of excessive force in the urinary stream. If the force of your urinary stream is troubling to you, discuss the matter with your health care provider, who can probably put your mind at ease.


What are the vital functions of a cell?

I think that the main function is to manage oxygen from the blood stream.


What is the function of the intestine in digestion?

The function of the small intestine is to abosorb nutrients into the blood stream using villi which are small finger like projections


What is the function of blood vessels of the villi?

I believe the function is to transfer oxygen to other parts of the body.