Top "C99" questions

This tag is for questions regarding the International Standard ISO 9899:1999, aka "C99", with technical corrigenda, and for questions about code written in C99 (as opposed to K&R C, C89 or later C Standard revisions like the 2011 revision C11).

difference between c99 and c11

I am learning c, presently. The book I read is C99 based. I want to update my knowledge to C11 …

c c99 c11
How to find my current compiler's standard, like if it is C90, etc

I'm working on a Linux machine. Is there any system command to find the standard followed by the C compiler …

c compiler-construction c99 c89
C99 inline function in .c file

I defined my function in .c (without header declaration) as here: inline int func(int i) { return i+1; } Then in …

c c99
Does the C preprocessor strip comments or expand macros first?

Consider this (horrible, terrible, no good, very bad) code structure: #define foo(x) // commented out debugging code // Misformatted to not …

c comments c-preprocessor c99
C89 vs c99 GCC compiler

Is there a difference if I compile the following program using c89 vs c99? I get the same output. Is …

c gcc compiler-construction c99 c89
Smart pointers/safe memory management for C?

I, and I think many others, have had great success using smart pointers to wrap up unsafe memory operations in …

c memory pointers c99 smart-pointers
Difference between uint8_t, uint_fast8_t and uint_least8_t

The C99 standard introduces the following datatypes. The documentation can be found here for the AVR stdint library. uint8_t …

c++ c integer avr c99
Are there machines, where sizeof(char) != 1, or at least CHAR_BIT > 8?

Are there machines (or compilers), where sizeof(char) != 1? Does C99 standard says that sizeof(char) on standard compliance implementation MUST …

c char standards sizeof c99
Forcing C99 in CMake (to use 'for' loop initial declaration)

I've been searching a portable way to force CMake to enable the compiler's C99 features in order to avoid the …

c++ c cmake c99
What is the correct type for array indexes in C?

What type for array index in C99 should be used? It have to work on LP32, ILP32, ILP64, LP64, LLP64 …

c types indexing c99