Top "C89" questions

This tag is for questions regarding the international standard ISO 9899:1990, also known as "C89", "C90" or "ANSI C", with amendments and technical corrigenda (as opposed to K&R C, C99, C11 or later C standard revisions).

Is the %zu specifier required for printf?

We are using C89 on an embedded platform. I attempted to print out a size_t, but it did not …

c printf c89 size-t c-libraries
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
How to generate NaN, -Infinity and +Infinity in ANSI C?

I use ANSI C89 (not C++), and I want to generate NaN, -Infinity and +Infinity. Is there any standard way (…

c nan c89 infinity
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
Type to use to represent a byte in ANSI (C89/90) C?

Is there a standards-complaint method to represent a byte in ANSI (C89/90) C? I know that, most often, a char …

c types c89
Can't get rid of "this decimal constant is unsigned only in ISO C90" warning

I'm using the FNV hash as a hashing algorithm on my Hash Table implementation but I'm getting the warning in …

c warnings constants unsigned c89
mixed declarations and codes

When I compile function with "gcc -o dene -Wall -ansi -pedantic-errors dene.c" ,gcc emits no error.(can you look …

c declaration compiler-warnings c89
Casting an int pointer to a char ptr and vice versa

The problem is simple. As I understand, GCC maintains that chars will be byte-aligned and ints 4-byte-aligned in a 32-bit …

c pointers types casting c89
C check if file exists

In a project I have to do in C89 standard I have to check if a file exists. How do …

c c89
Enabling VLAs (variable length arrays) in MS Visual C++?

How can I enable the use of VLAs, variable length arrays as defined in C99, in MS Visual C++ or …

c visual-c++ c99 c89 variable-length-array