answersLogoWhite

0

A buffer is a (usually temporary) place to store data. If you have a data stream that needs to be processed, it will usually be placed into a buffer and then read from the buffer, rather than trying to read the stream directly.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you read input buffer of keyboard using C?

scanf();


How do you clear input buffer in c plus plus?

cin.clear();


Definition of buffer in assembly language?

its just like a string of c++


How can you get c and c plus plus output statements to work together?

The C and C++ library routines for output might, or might not, include use of different buffers. If they are the same buffer (unlikely) then you can simply intermix the techniques. If they are not the same buffer then you need to do a flush sequence between techniques.


How do you calculate the total buffer capacity of an aqueous solution of a strong base or base at any pH?

Buffer capacity depends on the Ka of the buffer component, the concentration of the buffer (C), as well as the [H3O+]. Thus, it will beBuffer capacity = 2.3 C (Ka x [H3O+]/(Ka + [H3O+])^2The Ka will be that of the conjugate acid and [H3OP+] will be the antilog of -pH. Then just plug and chug.


Why gets function gives a warning every time you compile a c program?

It is unsafe. In order to use gets() safely, you need to know how many characters you will be reading to ensure your character buffer is large enough: char buffer[10]; while (gets (buffer) != 0) { ...process buffer... } The above code has undefined behaviour when the number of characters read is 10 or more (you need one character for the null-terminator). This is because the character buffer, str, decays to a pointer (referencing &str[0]) and the function, gets(), cannot determine the number of characters in a buffer by its pointer alone. The gets() function was dropped from the C standard in 2011, however some implementations still include it. To avoid the warning, use the fgets() function instead. This allows you to specify the length of your buffer and (when used correctly) prevents buffer overflow. char buffer[10]; while (fgets (buffer, 10, stdin) != 0) { ...process buffer... }


What are some different ways to clear the input buffer in C and Cpp?

In C++ we clear an input buffer as follows: std::cin.clear(); // clear the error state (if any) std::cin.ignore (numeric_limits<streamsize>::max()); // read and ignore everything until EOF


Which one of the following combinations cannot function as a buffer solution: a) HCl and NaCl, b) NH and NHCl, or c) HNO and NaNO?

The combination that cannot function as a buffer solution is a) HCl and NaCl.


What are brand names for buffer-in?

Some brand names for buffer-in solutions include Tris Buffer, Phosphate Buffer, HEPES Buffer, and Bicine Buffer.


Display system date in c?

See http://www.cplusplus.com/reference/clibrary/ctime/strftime.HTML . The example is given in C++, but the spec is the same as std ISO C 1990. /* strftime example */ #include <stdio.h> #include <time.h> int main () { time_t rawtime; struct TM * timeinfo; char buffer [80]; time ( &rawtime ); timeinfo = localtime ( &rawtime ); strftime (buffer,80,"Now is %I:%M%p.",timeinfo); puts (buffer); return 0; }


What is pinned buffer in oracle?

The buffer is in used is called as pinned buffer


How is purified genomic DNA stored?

Purified genomic DNA is typically stored in a buffer solution containing a stabilizing agent, such as Tris-EDTA (TE) buffer, to protect the DNA from degradation. Samples are usually kept at -20°C or -80°C to maintain stability and prevent enzymatic degradation. It is important to avoid repeated freeze-thaw cycles to preserve the integrity of the DNA.