DEV Community

Adam Crockett ๐ŸŒ€
Adam Crockett ๐ŸŒ€

Posted on

Which C standard?

I'm returning to a project which is kind of between fun and a serious technical challenge. 18 months ago I wrote most of tidal-node; a way to have Lua VM running and interoperating with node.js, it's mostly wrote in c++ which I found to be a little bit vast for my tastes. So between upgrading all the dependencies and stripping out all the OOP style code from the JS library frontend, I want to do a redo using C.

My question, C99 sounds so cool, C11 sounds older but it's newer and C18 that's the newest but I think this is a bad way to pick. What's the difference in a nutshell?

Top comments (3)

Collapse
 
kailyons profile image
Loralighte

C18 as it is the newest. The difference is ANSI added new standards but it is basically just C + last two numbers of the year. C11 is from 2011, and C99 is 1999.

Collapse
 
kailyons profile image
Loralighte

The next revision will not be known until the expected vote 2021, and will prolly not matter if you pick C18 over C21 as the standards will probably not be super big.

Collapse
 
adam_cyclones profile image
Adam Crockett ๐ŸŒ€

Got it thank you, so not alot of differences. Il stick with C99 then.