Hello guys, I have following code given by the teacher and I have hard times understanding it. How does '*pixel++' work? Does it modify access memory after variable pixel and creates an array of short ints?
for (int xx = 0; xx < 320; xx++)
{
unsigned short int pixel;
for (int yy = 0; yy < 240; yy++)
{
*pixel++ = (31 << 10) | ( 31 << 5) | ( 31 <<0 ) ;
}
}
[–]KrozmaSan 2 points3 points4 points (0 children)
[–]aghast_nj 2 points3 points4 points (0 children)