I received a warning when I tried to compile my program that said:
warning: comparison between pointer and integer
Could you please explain to me what this means, and in what ways I could possibly fix this?
Thanks for your help!
I received a warning when I tried to compile my program that said:
warning: comparison between pointer and integer
Could you please explain to me what this means, and in what ways I could possibly fix this?
Thanks for your help!
pointers are addresses, not values. *pointer "dereferences" the pointer - it returns the value stored at the address the pointer references.
So, change the pointer_varaible to *pointer_variable. Positng your code would be great idea. We can giv e you direct answers.
You may cast the pointer to int as well ... if u really need to compare values on them