You need to cast because %p is used to print a pointer to void, but you want to print a pointer to int. Okay, but you might not need to cast, but then you would be relying on undefined behaviour.
...
Type: Posts; User: laserlight
You need to cast because %p is used to print a pointer to void, but you want to print a pointer to int. Okay, but you might not need to cast, but then you would be relying on undefined behaviour.
...
According to the MinGW port of gcc 3.4.5:
test.c: In function `main':
test.c:6: warning: void format, different type arg (arg 2)
You should increase your warning levels and/or test with a range...
A few things to note:
Your schedule is your problem. Avoiding telling the world that you urgently need an answer by a given date, especially since the more malicious among us would only give you...