how to compare pointer and integer in c