i'm using c to write program for microchip microcontroller.
recently i come across with one program from internet which i confuse with one of the code
normally for array in c, i just write
bitmap[]={5,5,5};
temp=bitmap[0]-1; then i get temp=4;
but now i saw from the code, it's written there
temp1=bitmap;
temp2=bitmap-1;
may i know what's mean by bitmap-1?(just the array name)
i try to run some simple simulation for the code, i get the answer
temp1=10;
temp2=9;
but i don't understand where its value come from.
thanks.
recently i come across with one program from internet which i confuse with one of the code
normally for array in c, i just write
bitmap[]={5,5,5};
temp=bitmap[0]-1; then i get temp=4;
but now i saw from the code, it's written there
temp1=bitmap;
temp2=bitmap-1;
may i know what's mean by bitmap-1?(just the array name)
i try to run some simple simulation for the code, i get the answer
temp1=10;
temp2=9;
but i don't understand where its value come from.
thanks.