A character set has 1 and 2 byte characters. One byte
characters have 0 as the first bit. You just keep
accumulating the characters in a buffer. Suppose at some
point the user types a backspace, how can you remove the
character efficiently. (Note: You cant store the last
character typed because the user can type in arbitrarily
many backspaces)

Answer Posted / lokesh tailor

We use the fflush(stdin) function to clear the buffer.
and then take the value of char or integer.
because the enter key is reconized as a character.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is difference betweeen operator overloading & operator overriding?

1592


What is necking in production engineering ?

593


what is difference between value datatype and object datattype

1390


computer is male or female.....???

1451


hi all I got two exam call letter one from maha ganeco & other from federal bank both at same time & same date which should i choose (note I am eng. grad.)

1686






Why do sausages split lengthways, rather than around the circumference?

1013


discuss the conditional formatting and advanced filtering features in MS-Excel with suitable example

1365


defference between menu and context menu in vb.net?

2381


int main() { int d = 10; int m = 2; int y = 3603; int c = 0; int val; val = ( d + m + y + (y/4) + c) % 7; cout << val; return 0; }

1183


different types of protocols.......?

1438


what is means of admistrative distance

1593


how the class is instance of object?

1963


Define function ? Explain arguments in functions ?

1534


can i knw what are we supposed to read for the coming oces/dgfs 2009 exam?what kind of book are we supposed to study?

1662


what is the work of Loopback ?

1428