Hi all,
i'm new to C, could anyone give brief information about machine statements,why its used?
thanks and regards,
Sri
Hi all,
i'm new to C, could anyone give brief information about machine statements,why its used?
thanks and regards,
Sri
What do you mean by "machine statements"?
1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
3. Get rid of conio.h and other antiquated DOS crap headers.
4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.
Bull ............if u dont know shut your mouth up...
claudiu shut ur mouth up
mgnidhi_3july: you might want to read the forum guidelines. Your retort comes very close to getting you a warning under rule #7.
Back to the question: what exactly do you mean by "machine statements"? Are you talking about the use of inline assembly?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
3. Get rid of conio.h and other antiquated DOS crap headers.
4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.
I think they're referring to state machines, re: posting on the end of this thread.
interview Q and A i encountered - BOKIBOAZ
But given the outburst, I'm somewhat dis-inclined to bother helping the OP anymore.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Wow. That's not just inappropriate, it's INSANE. You are INSANE. Seek help.
Code://try //{ if (a) do { f( b); } while(1); else do { f(!b); } while(1); //}
I'm guessing that mgnidhi_3july thought claudiu's signature was directed specifically at him/her.
Not that that is any kind of reasonable excuse.
I would have to guess that "machine statements" are used simply because they are. If that's not tha answer you were looking for then Google is your friend.