It has been a while that I used pointers and I just wanna quickly check how I can initialize an integer pointer?
a) int *tmpPtr = 0; b) int *tmpPtr = null;
There is no null keyword in C (at least in ANSI C99). You could use a) or c).
null
In c) you'll not initialize pointer with null, you'll initialize it with address of local variable.