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
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 |
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 |
what is routing protocals & routed protocals.
Why viruses wont affect Linux systems?
what is the advantage of msil in c#
differance between impedance relay,mho relay, reactance relay in detail
what is the difference between embedded system and PLC. Whether the micro controller accept future expansion of program?
WHAT IS THE DUMP ERROR?
PLC Training in chennai ? Best PLC Training center in chennai?
What are the inspection and test plan for lift materials?
synchronous and asynchronous transmission
I have applied for the post of Section Engineer. plz anyone send me the previous question paper. i did my engineering in Information Technology.
why B+tree usually prefer as on exis structure to a data file?
Why do large ships like aircraft carriers not sink despite weighing several thousand tonnes?