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

sir now i am studying B.Tech final year so now i am eligible for writing group 1 and 2 or not?

0 Answers  


Streams can be for writing the data to a.txt file

1 Answers  


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; }

0 Answers  


what is locative information on web.........?

0 Answers  


how to use two diffirent gatway in one system

0 Answers  






Whats the difference between following two array declaration in JAVA? int a[]={1,2,3,4,5}; int []a-{1,2,3,4,5};

0 Answers  


What is the basic difference between injection speed and injection pressure in an injection molding machine?

0 Answers  


what is defect tracking in sotware testing

0 Answers  


Why you shifting job every other year?

1 Answers  


What type of questions are asked in interview?

0 Answers  


when load increase in generator in island mode, why turbine rpm is reduced

0 Answers  


what are the different types of database servers

0 Answers   IBM,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4452)
  • Electrical Engineering Interview Questions Electrical Engineering (16637)
  • 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)