title: how to print the value of a function-pointer from a structure
body: <p>The value contained in the function-pointer   " *fun "  from the structure below is wrong printed and i can not find the way to print it right. What's the right code for it? The code:</p>
  
  <pre><code>struct t {                      //structure definition
      int a;
      int (*fun) (int  a);};
  
  
  int get_a (int  a) {            //function definition
      a = a*2;
      return a;}
  
  int main () {
      t test;                     //variable creation
      get_a(5);                   //function activating
      test.fun = &amp;get_a;          //assignation to the pointer function
      printf ("%d\n",*(test.fun));    //THE NUMBER 4199360 IS WRITTEN INSTEAD OF '10'.
  
      return 0;
  }
  </code></pre>