Declarations and Initializations

1. Declarations and Initializations

1.1How do you decide which integer type to use?

1.4What should the 64-bit type on new, 64-bit machines be?

1.7What's the best way to declare and define global variables?

1.11What does extern mean in a function declaration?

1.12What's the auto keyword good for?

1.14I can't seem to define a linked listnode which contains a pointer to itself.

1.21How do I declare an array of N pointers to functions returningpointers to functions returning pointersto characters?

1.22How can I declare a function that returns a pointer to a functionof its own type?

1.25My compiler is complainingabout an invalid redeclaration of a function,but I only define it once and call it once.

1.30What can I safely assume about the initial values of variableswhich are not explicitly initialized?

1.31Why can't I initialize a local array with a string?

1.32What is the difference betweenchar a[] = "string"; and char *p = "string"; ?

1.34How do I initialize a pointer to a function?


top