Hello all!
What is the most widely used and long-life C programming language standard version? I didn't found that info. Wikipedia says that C89 is most popular among compilers.
Thank you.
Hello all!
What is the most widely used and long-life C programming language standard version? I didn't found that info. Wikipedia says that C89 is most popular among compilers.
Thank you.
If you are correcting/maintaining an existing C application, or adding some functionality, you should use the Standard that was used to compile that app. Check the Makefile or documentation to determine the Standrd used.
If this is a new application you are creating, then you should use the latest C Standard allowed by the compiler you are using.
With gcc, you should use the option, -std=xxx where xxx is C18, C11, C99, or as a last resort, C89 (C90)
If your compiler ONLY accepts the C89/90 or ANSI option, then you need a new compiler, and possibly a new O/S!
C18 is the ISO name for what some refer to as C17.