fork download
  1. #include <stdio.h>
  2.  
  3. void go_south_east(int* lat, int* lon)
  4. {
  5. *lat = *lat -1;
  6. *lon = *lon - 1;
  7.  
  8. }
  9.  
  10. int main()
  11. {
  12. int latitude = 32;
  13. int longitude = -64; //com N
  14. go_south_east(&latitude, &longitude);
  15. printf("Avast! Now at: [%i, %i]\n", latitude, longitude);
  16. return 0;
  17.  
  18. }
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
Avast! Now at: [31, -65]