Thread: Most widely used C language standard

  1. #1
    Registered User
    Join Date
    Sep 2018
    Posts
    21

    Most widely used C language standard

    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.

  2. #2
    Registered User
    Join Date
    Feb 2019
    Posts
    550
    Quote Originally Posted by Wido View Post
    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.
    I believe C99 is the most popular nowadays, but compilers like GCC [version 7 or superior, I think] uses extended C11 by default (GNUC11).

  3. #3
    Registered User rstanley's Avatar
    Join Date
    Jun 2014
    Location
    New York, NY
    Posts
    677
    Quote Originally Posted by Wido View Post
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 03-19-2017, 03:18 PM
  2. Replies: 5
    Last Post: 09-19-2011, 03:06 AM
  3. is the STL widely used in professional C++ programming?
    By thefeedinghand in forum C++ Programming
    Replies: 40
    Last Post: 07-27-2010, 04:54 PM
  4. Most widely used compiler?
    By nubby in forum C Programming
    Replies: 10
    Last Post: 10-02-2007, 10:29 PM
  5. standard language, standard compiler?
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 09-03-2001, 04:21 AM

Tags for this Thread