Perhaps I just agree with Ritchie and Stroustrup that main(void) is awful. That's my opinion, however.
My post was motivated on this: since int main()int main(void) are considered more-or-less equivalent (from our perspective, because they are most definitely not equivalent in actuality), and not all C compilers can trip through the second easily, why bother correcting correct code?
hey_shishir, sorry you've had to put-up with this. However, the forum announcements make it quite clear that we won't do your homework for you. You are plenty bright enough to think about how to test a number to see whether or not it is divisible by 3. Give it your best shot, and if it still doesn't work right, post back here with what you have got and we'll help you fix it.
How can something correct be corrected? ( Rhetoric question )
Regardless, there was not correction to twomers posted code, but rather an add-on or extension to the sarcasm intended. Thus the green highlights. e.g.
You are plenty bright enough
How bright where you thinking? Bright as a 20 watts bulb or as a 60 watts one. ( No an actual question, but rather a sarcasm )
>> There was a reason why rhetoric question was specifically written within parenthesis.
Same reason as void :D I got the joke, by the way.
I merely thought the quote correlated to the situation. Anyways, I don't think the OP's coming back. Been fun posting in this thread!
- void main is bad, very bad. Find out why.
- getch() is nonstandard and nonportable. Use getchar() instead, and then you can get rid of the conio.h header file.
- Use CODE tags when posting code.
- Don't post complete solutions to homework.
Well, seeing as we've lost the OP anyway, I hope you are laughing and not suggesting you have a firmer grasp of English grammar than I...
Because if you are just laughing you know already that the word "and" is only used to conjoin similar clauses and does not have any effect upon the exact, technical relationship (if any) between those clauses...
But again, seeing as this thread has permanently disintegrated into silly answers, I accept your joke.