I have two questions:
1)
Here is a small program showing how one can use Array name as Pointer variable.
#include<stdio.h>
int main(){
int a[5]={1,2,3,4,5},i=0;
for(i=0; i<5; i++){
printf("\nAddress: %d\tValue: %d", a+i,*(a+i));
}
getch();
return 0;
}
If we can use array name as pointer variable, then why separately declare pointer variable ?
2) Is there anything like Pointer Constant as Pointer Variable ?