fork download
  1. #include <stdio.h>
  2.  
  3. int number;
  4.  
  5. int doubleIt() {
  6. number *= 2;
  7. }
  8.  
  9. int main(void) {
  10. number = 3;
  11. doubleIt();
  12. printf("Doubled number is %d", number);
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
Doubled number is 6