title: C Help - Same variable with two values
body: <p>I have a function with the input variables what are modified by this function ( this I can test and the variables in the end are right ) , the function are in the file1.c and is declared in file1.h , and I called this function by the main file ( main.c ) . But when in main.c I use this function , the variables are not modified .</p>
  
  <p>For be more easy to understand, an exemple:</p>
  
  <p><strong>In file1.c -></strong></p>
  
  <pre><code>void funcion(char input1[], int input2){
  
  --&gt; Here some modificions happends
  
  printf("Variables first are %c %d", input1[0], input2);
  //the function end after this print
  
  }
  </code></pre>
  
  <p><strong>In file1.h-></strong></p>
  
  <pre><code>void funcion(char input1[], int input2);
  </code></pre>
  
  <p><strong>In main.c-></strong></p>
  
  <pre><code>#include "file1.h"
  
  main()
  {
  char *input1;
  int input2;
  
  function(input1, input2);
  printf("Variables second are %c %d", input1[0], input2);
  }
  </code></pre>
  
  <p><strong>The out put of the program:</strong></p>
  
  <pre><code>Variables first are A B
  
  Variables second are C D
  </code></pre>
  
  <p>The variable A =/= C and B =/= D. Please, someone can help?</p>