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

As a good company employee, can you report your supervisor to the company management if he or she is going against the company interest in his or her actions?

2269


i want questions only on code part like general logics in c and java

1612


1.what a diffrenrs v-lan & (layer)l-3,l-2 bitween plz define defination of these? 2.how to configur ms outlook & lotus note (ibm)

1692


what is the difference between core java and advance java

1665


What is frog testing? What is cone model?

1626


Why does the 'divisibility by 3' rule work?

2833


what are all the browsers..?

1640


If you were to drill a circular hole in a sheet of metal and then heat the sheet, what would happen to the size of the hole?

856


Whet is KCFT and difference between CFM and KCFT

1613


plz explain abt refrigeration r22 bitzer comprassors trouble shooting and maintenance

1560


Hi i want some previous interview questions and answers for KVB Bank.

2361


I have Cleared Bank of India Clerical Examination.I just want to know how to prepare for interview and what are the parriculars that I have to submit......Pls someone help me with it

1683


what is test strategy

1649


How to Define the defect density?

1724


if we give you the job AS A PETROLEUM ENGINEER WHAT WILL YOU DO(that is extraordinary) for our company

3038