What is pixel ?
Pixel is the smallest entity in the computer screen.
How we display pixel ?
Answer: by putpixel() function
x and y is the co-ordinate
'color' is the pixel color
-In this program, we simply display the pixel at (200,200) with green color.
-It is difficult to seen the only one pixel because of it's small size.
Now print pixels randomly with random colors:
-In this program, we include < stdlib.h> because of rand() function which are used to generate the random number.
-We run loop 1000 times and put pixel randomly anywhere in the screen.