What is ANSI C Implementation?

«
»
Question: What is ANSI C Implementation?

Answer: In early days of C, different implementations in order to enhance the performance of the program, improved the common library functions by modifying or extending their functionality. These changes nay have been useful for particular implementations for which they were made, but they inhibited portability because the code that depended on these changes would fail on other implementations that lacked them or had different modifications.

To maintain the concept of portability of code across a wide range of implementations, ANSI C implementations include library in specification. Standard dictates a mandated set of functions, which have required interface and they operate in prescribed manner. In addition, ANSI C implementations aren’t prohibited from adding additional non-standard functions in the library. In order to be able to write portable code be sure to use functions defined by the standard and avoid non-standard functions.

Sanfoundry Global Education & Learning Series – 1000 C Tutorials.

If you wish to look at all C Tutorials, go to C Tutorials.

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & technical discussions at Telegram SanfoundryClasses.