title: how to set a int value passed by parameter to a function and assign it to global so I can use outside of the function?
body: <p>how to set a int value passed by parameter to a function and assign it to global so I can use outside of the function?</p>
  
  <p>Example: </p>
  
  <pre><code>int assignValues(int valor_assign1, valor_assign2){
      valor_assign1 = 7;
      valor_assign2 = 3;
  }
  
    main (){  
  int valor1 = 0;
  int valor2 = 0;
  
  assignValues(valor1,valor2);
  printf("%d,%d",valor1, valor2);
  }
  </code></pre>
  
  <p>The output is actually 0,0   I want it to be 7,3 how do I do this?
  I know its a simple question but I've been trying and searching but I can't find anything like that =/
  Thanks in advance. </p>