fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. #define N 10
  5.  
  6. int changeMap(char mp[N][N], int x, int y){
  7. mp[x-1][y-1] = 'X';
  8. return 0;
  9. }
  10. int main(){
  11.  
  12. char map[N][N];
  13. map[0][0]= 'T';
  14. printf("%c", map[0][0]);
  15. changeMap(map, 1, 1);
  16. printf("%c", map[0][0]);
  17. return 0;
  18. }
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
TX