its not a big deal, ive already worked around this problem but i was just curious why i cant put a pointer to an int as the array subscriptCode:int array[5] = {1,1,1,1,1}; int num = 1; int *ptr_to_int = # if(array[*ptr_to_int] == 1) ...
its not a big deal, ive already worked around this problem but i was just curious why i cant put a pointer to an int as the array subscriptCode:int array[5] = {1,1,1,1,1}; int num = 1; int *ptr_to_int = # if(array[*ptr_to_int] == 1) ...
It is valid. What exactly is the error or warning you're getting?