Certainly a troll can troll a troll! If the troll the troll trolls is the original troll, that's not a violation of your philosophical principle, it's simply recursion!
When C chose to label integer division "/" instead of div or someother thing that cannot be confused with real division, they did exactly that.
Using / for integer division makes more sense than using it for floating-point division (which is not real division due to round-off error) in an environment where most arithmetic is done with ints (and an int is an integer mod 2^32 over a range that's half negative, so don't go thinking you can get overflow errors with + or *, either).
C is not a language for Joe Blow. C is a language for Real Programmers (when the're two lazy to just use a sector editor and hack in the raw binary). You probably can't even keep lose and loose straight.
Interpreting the bit-pattern for the int 1 as a float (0E+1?) is presumably not what you intended (perhaps on your architecture this works? perhaps you're also a troll?). What you wanted to do is convert, not cast the int 1 to the float 1.
float y=1/2*3.14;/* Obviously borked */
This is just deliberate obfuscation, as it will be attacked by the implicit type conversion monsters and only the kind of people that memorize phone books would know the result without looking it up.
float y=3.14/2.0;
Is what anyone who is used to C would use without even thinking about it. The problem with the example in your sig (not using the . with every float) was obvious to me, and I'm a drooling troll. duh.
In short, I congratulate you on your masterful anti-C++ troll. YAAT. YHW. HAND.
This book is not for end-users. All the end user needs to know is that the terminator goes on the END of the cable, and that knowledge is to much for em.
Grammar error in a grammar troll? Thanks for upholding the usenet traditions!
Like, say, airplanes, cruise liners, pretty much all weapons the airforce has, most drug manufacturing plants?
Certainly a troll can troll a troll! If the troll the troll trolls is the original troll, that's not a violation of your philosophical principle, it's simply recursion!
OTOH, anonymous trolling is just lame.
(Quote and Quote)
Please use proper English while trolling (Quote Unquote), as trolling for grammar trolls is quite lame. YAAT. YHW. HAND.
Ahh, now you're starting to fit in.
I see you're new here.
Using / for integer division makes more sense than using it for floating-point division (which is not real division due to round-off error) in an environment where most arithmetic is done with ints (and an int is an integer mod 2^32 over a range that's half negative, so don't go thinking you can get overflow errors with + or *, either).
C is not a language for Joe Blow. C is a language for Real Programmers (when the're two lazy to just use a sector editor and hack in the raw binary). You probably can't even keep lose and loose straight.
The reason they are deprecated is to avoid dumb-ass mistakes like this one
Interpreting the bit-pattern for the int 1 as a float (0E+1?) is presumably not what you intended (perhaps on your architecture this works? perhaps you're also a troll?). What you wanted to do is convert, not cast the int 1 to the float 1.This is just deliberate obfuscation, as it will be attacked by the implicit type conversion monsters and only the kind of people that memorize phone books would know the result without looking it up.
Is what anyone who is used to C would use without even thinking about it. The problem with the example in your sig (not using the . with every float) was obvious to me, and I'm a drooling troll. duh.
In short, I congratulate you on your masterful anti-C++ troll. YAAT. YHW. HAND.
This book is not for end-users. All the end user needs to know is that the terminator goes on the END of the cable, and that knowledge is to much for em.