#Help with ISO standards

26 messages · Page 1 of 1 (latest)

night spireBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

glacial narwhal
#

programs written for C99 can almost always compile as C11

#

programs that use new features from C11 cannot compile as C99, but arguably the only completely new feature is _Generic

#

anonymous struct/union members were already a widely-used gcc extension before C11

queen sphinx
glacial narwhal
queen sphinx
#

new feature is _generic, but otherwise it would be able to compile?

glacial narwhal
#

and almost every C99 program is also a C11 program

#

there are a few dark corners, but unless you're doing something REALLY weird, most programs written in one work with the other

queen sphinx
#

ah ok

#

so if im correct

#

any or (most) programs written in c99 standard will compile on the c11 compiler

#

and this is the same for any program written in c11 will compile on the c99 compiler?

glacial narwhal
#

C11 is basically C99 with some extra features

queen sphinx
#

oh cool

glacial narwhal
#

and those features don't come up much

queen sphinx
#

cool

#

so is this correct?

glacial narwhal
#

C11 has features that didn't exist in C99

#

if you use alignas, alignof, or generic, then your code won't compile under C99

queen sphinx
#

damn blocked kekw

night spireBOT
#

This question thread is being automatically marked as solved.