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 |
I am selected interview for computer sc.please give me some information how many types question asked in interview.my id is sumanadas10@gmail.com
what are the qualifications for a cse student to get government job
MES NEW DELHI
sir, plz send me the question regarding DMS gr1 questions of previous year as my exam is on 27/09/08...thanking u in advance...
what is fabrication process?
what is your experience with computer-aided design software.
What are the inspection and test plan for lift materials?
What is the actual procedure of charging synthetic oil if the machine is under positive refrigerant pressure.
why we need abstract class in java, what is the diff b/w abstract claas in c++ and abstract class in java
Describe circular polarization?
Can a generic class extend another generic class??
what is D- channel ?
Civil Engineering (5086)
Mechanical Engineering (4456)
Electrical Engineering (16639)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)