CUED C Course
The following information supplements the
seminars run in October.
Local Frequently Asked Questions
- Which is right: "int *pointer;" or "int* pointer;"?
Whether the "*" is next to int or pointer the resulting code
is the same (creating a pointer to an integer) but I
prefer the 1st version because it's a reminder that you need a "*" for
each pointer variable that you create on the line. i.e.
"int *pointer, *pointer2;" creates 2 pointers but "int* pointer, pointer2;" doesn't.
Updated on 20th October, 1997