You are comparing a pointer with an integer, right? Beginners can easily make this mistake. Make the pointer and address clear and practice more.
For example, you define an int *p, a; Then p is an integer pointer and a is an integer, so we can't compare them directly.