fork download
  1. #include <stdio.h>
  2.  
  3. void altera(int x){
  4. x = 10;
  5. }
  6.  
  7. int main(void) {
  8. int var1 = 50;
  9. altera(var1);
  10. printf("%d", var1); //50
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
50