fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int points[20][50];
  6. int x, y;
  7.  
  8. for (x = 0; x < 19; x++) {
  9. for (y = 0; y < 50; y++) {
  10. points[x][y] = rand() % 256;
  11. }
  12. }
  13.  
  14. printf("Color for point[1, 2] is %d", points[1][2]);
  15. return 0;
  16.  
  17. }
Success #stdin #stdout 0.02s 1676KB
stdin
Standard input is empty
stdout
Color for point[1, 2] is 155