title: C program compiles but no output
body: <p>I am trying to learn creating header file in C and including it in my main.c func() . I created a simple tut1.c file with function named call() and a tut1.h header file which externs tut1.c function named call(). Thats it, now i am using eclipse Juno for C/C++ on linux fedora. I dont get any compile error but the code wont output? I tried on console and eclipse in vain. Can you check please? Thanks</p>
  
  <pre><code>---main.c-----
  
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  #include &lt;stdio.h&gt;
  #include "tut1.h"
  
  int main (void)
  
  {
      int tut1(void);
  
      return 0;
  }
  
  -----tut1.c------
  
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include "tut1.h"
  
  int call (void)
  {
      int *ptr;
      int i;
  
          ptr = &amp;i;
         *ptr = 10;
  
      printf ("%d we are printing the value of &amp;i\n", &amp;i);
      printf ("%d we are printing the value of *ptr\n", *ptr);
      printf ("%d we are printing the value of ptr\n", ptr);
      printf ("%d we are printing the value of &amp;ptr\n", &amp;ptr);
  
      getchar();
      return 0;
  }
  
  ----tut1.h----
  
  #ifndef TUT1_H_
  #define TUT1_H_
  
  extern int call (void);
  
  #endif
  </code></pre>