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)

Answers were Sorted based on User's Feedback



A character set has 1 and 2 byte characters. One byte characters have 0 as the first bit. You just..

Answer / 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

A character set has 1 and 2 byte characters. One byte characters have 0 as the first bit. You just..

Answer / threesome

whenever a backspace character is clicked(ASCII VALUE: 08),
I will replace the previous character with a space(ASCII
VALUE: 32)

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Engineering AllOther Interview Questions

what is routing protocals & routed protocals.

2 Answers   DELL, jetking,


Why viruses wont affect Linux systems?

1 Answers  


what is the advantage of msil in c#

0 Answers  


differance between impedance relay,mho relay, reactance relay in detail

8 Answers   Ecil, GATE,


what is the difference between embedded system and PLC. Whether the micro controller accept future expansion of program?

0 Answers  






WHAT IS THE DUMP ERROR?

1 Answers   CTPS,


PLC Training in chennai ? Best PLC Training center in chennai?

1 Answers  


What are the inspection and test plan for lift materials?

0 Answers  


synchronous and asynchronous transmission

0 Answers  


I have applied for the post of Section Engineer. plz anyone send me the previous question paper. i did my engineering in Information Technology.

0 Answers  


why B+tree usually prefer as on exis structure to a data file?

0 Answers  


Why do large ships like aircraft carriers not sink despite weighing several thousand tonnes?

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)