On Sun, 21 Jan 2007 00:35:05 +0530, Dinesh Joshi dinesh.a.joshi@gmail.com said:
On Sat, 2007-01-20 at 20:52 +0530, Debarshi Ray wrote:
I had bought it only to learn about DOS routines for the mouse. Interrupt 33h I think
There are other places where you can learn about interrupt 0x33, 8-bit colors, playing WAVs and displaying BMPs in TurboC, etc.. One of them is the Internet.
EXCUUUUUUUUUUUUUUUUUUUUUUUUUUUUUSEE MEEEEEE............. DONT presume anything about ANYONE.
You do not have to shout. It rarely gets peoples attention -- it is more likely to get you kill filed
These are not clever hacks by any stretch of the imagination. I have not had the privilege to look at the code written by any of these companies, but I have never across such things in any project worth its name. K&R is quite categorical about discouraging such usages.
Yes, but it is the REQUIREMENT of the times. I have not come across a single place where YPK stresses the importance of using such kind of constructs. All he shows the student is that IT IS POSSIBLE to do such stuff with C.
If you think that "i++ + ++i" is a legal construct in standards conformant C, then people should stay away from wherever you learned the language.
There are no sequence points between i++ and ++i, so the result of the evaluation is undefined. Undefined means that the implementation is allowed to do whatever it wants, including making monkeys fly out of your nose.
The Quiz in question was probably designed to discover which candidates did not know enough not to ever use such expressions.
manoj