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 |
How is the parity flag actually set in the 8085 microprocessor?
What is noise figure?
What is the definition of gain?
i am going to give interview for the post of ibps po..so there is a question in my mind which is "Being an electonics and communication engineer how can you help in banks, I mean whats the application of your education in banking."
What are the input documents to 1.Functional testing,2.System testing and 3.Integration testing. Whether there will be separate test cases for regression testing or functional testing?
hi friends, i got selected in tcs, i m doing my b.e in one of the college in coimbatore.. i don have questions to post u.. but i have valid suggestion..its waste to prepare apti for tcs by looking at last 10 year question from internet.they changed all the apti question this year(2009).. but apti questions is easy..prepare critical reasoning for gre 12th edition..mug up the answers in critical reasoning.. u can download ebook for gre 12th edition..solve the critical reasoing question at the same time mug up it.. there were totally 3 critical reasoning question asked.. two for gre 12th edition so if u mug up u can finish two questions in 3 min.. so u will have 27 min for other question so u can work it out and find the ans..above i mentioned as 3 questions tat is 3 question means ,three paargraph.. each para carries 4 question so totally 12 question in critical reasoning.. if u clear all 12 question u will be selected.80% percent sure.then don mug up synonyms from gre barron because they are asking same question from barron but the choice for the questions are changed.. so study synonyms and antonyms from internet.. some pupils have posted the questions.. in tech and h r don use complex word or don show tat u r so dminant.. talk with them how u will speak wit ur friend. u will be through.. don think wat i have posted above is lik some info in other site.. wat i said is true.. they changed apti tis time.. u will be selected if u follow wat i said..again i m saying pls concentrate on critical reasoning.. if all questions in it are right u r through..bye
main() { float a=0.3; printf("%d\n%f",a,a); }
There are prime factors of two numbers a and b , write a program using this prime factors whether a is divisible by b?
What are the differences between 1 dimensional RAM and 2 dimensional RAM?
Hi I want to know how API gravity has been come up with in Oil Industry, especially figures in the following formula: API=(141.5/SG)-131.5
what is the difference between core java and advance java
WAP in Java to print the format: ABC BCD CDE EFG
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)