Pointers

4. Pointers

4.2What's wrong with"char *p; *p = malloc(10);"?

4.3Does *p++ increment p, or what it points to?

4.5Iwant to usea char * pointer to step over some ints. Why doesn't "((int *)p)++;" work?

4.8I have a function which accepts,and is supposed to initialize,a pointer,but the pointer in the caller remains unchanged.

4.9Can I use a void ** pointer to pass a generic pointer to a function by reference?

4.10I have a functionwhich accepts a pointer to an int. How can I pass a constant like 5 to it?

4.11Does C even have ``pass by reference''?

4.12I've seen different methods used for calling functions via pointers.


top