Following program would state my doubt clearly I think,so I posted the program:
#include int main() { int a[]={1,2,3,4,5};
In C, you can get away with comparing two different types of pointers, but your compiler should give you a warning.