Basic and Advance C Question:
Download Questions PDF

But I cant use all these nonstandard, system-dependent functions, because my program has to be ANSI compatible!

Answer:

You're out of luck. Either you misunderstood your requirement, or it's an impossible one to meet. ANSI/ISO Standard C simply does not define ways of doing these things; it is a language standard, not an operating system standard. An international standard which does address many of these issues is POSIX (IEEE 1003.1, ISO/IEC 9945-1), and many operating systems (not just Unix) now have POSIX-compatible programming interfaces.
It is possible, and desirable, for most of a program to be ANSI-compatible, deferring the system-dependent functionality to a few routines in a few files which are either heavily #ifdeffed or rewritten entirely for each system ported to;

Download C Programming Interview Questions And Answers PDF

Previous QuestionNext Question
Why isnt any of this standardized in C? Any real program has to do some of these things.What are near and far pointers?