ANSI/ISO Standard C

11. ANSI/ISO Standard C

11.1What is the ``ANSI C Standard?''

11.2How can I get a copy of the Standard?

11.3My ANSI compileris complaining about prototype mismatchesfor parameters declared float.

11.4Can you mix old-style and new-stylefunction syntax?

11.5Why does the declaration"extern f(struct x *p);" give me a warning message?

11.8Why can't Iuse const values in initializers and array dimensions?

11.9What's the difference betweenconst char *p and char * const p?

11.10Why can't I pass a char ** to a function which expects a const char **?

11.12Can I declare main as void, to shut off these annoying ``main returns no value'' messages?

11.13But what about main's third argument, envp?

11.14I believe that declaring void main() can't fail, since I'm calling exit instead of returning.

11.15The book I've been usingalways uses void main().

11.16Is exit(status) truly equivalent to returning the same status from main?

11.17How do I getthe ANSI ``stringizing'' preprocessing operator`#' to stringize the macro's value instead of its name?

11.18What does the message``warning: macro replacement within a string literal''mean?

11.19I'm getting strange syntax errors insidelinesI've#ifdeffed out.

11.20What are #pragmas ?

11.21What does ``#pragma once'' mean?

11.22Is char a[3] = "abc"; legal?

11.24Why can't I perform arithmetic on a void * pointer?

11.25What's the difference betweenmemcpy and memmove?

11.26What should malloc(0) do?

11.27Why does the ANSI Standard not guarantee more than six case-insensitivecharactersofexternal identifier significance?

11.29My compiler is rejecting the simplest possible test programs,with all kinds of syntax errors.

11.30Why are some ANSI/ISO Standard library routines showing up asundefined, even though I've got an ANSI compiler?

11.31Does anyone have a tool for converting old-style C programs toANSI C,or for automatically generating prototypes?

11.32Why won'tfrobozz-cc,which claims to be ANSI compliant,accept this code?

11.33What's the differencebetweenimplementation-defined,unspecified,andundefinedbehavior?

11.34I'm appalled that the ANSI Standard leaves so many issues undefined.

11.35I just triedsome allegedly-undefined codeon an ANSI-conforming compiler,and got the results I expected.


top