getpixel function returns the color of pixel present at location(x, y).
Declaration :- int getpixel(int x, int y);
C program for getpixel
As we haven’t drawn anything on screen and by default screen is BLACK, therefore color of pixel at (0,0) is BLACK. So output of program will be color of pixel at (0,0) is 0, as 0 indicates BLACK color.