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 dns?

1448


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

1436


What is the weight of a foot square block of bronze.

1259


what is difference between Fault tolerance Vs fault avoidance

3508


What is meant by relay & co-ordination at substation engineering ?

1817






Explain the memory reference and register reference instructions as micor operation.

3800


A rectangular beam section of 300 mm width and 500 mm effective depth is reinforced with 4 bars of 20 mm diameter, what shear reinforcement is required to resist 200 kN shear (use working stress method)?

1604


defference between menu and context menu in vb.net?

2379


what we have to say about hobbies,strong points,weak points

1781


what is means of admistrative distance

1591


How we calculate steam turbine governor linkage assembly?

1535


how much lighting lux need for a common walking area at night time

1794


If i update, insert or delete records in my view will it affect my base table?????

1324


Write a program to count the no. of occurrence of word in given string Ex- Ram is good boy. Ram is doing good job. Ram – 2 is – 2 good – 2 boy – 1 doing –1 job – 1

3258


What is Campus selection process of patni at Adcet,Ashta at 24th dec 2010.Also give apti syllabus.

2021