title: Why C program gives different result?
body: <p>There was a question in an exam I took. The question was:</p>
  
  <p>What will be the output of the following code:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  
  void main()
  {
   int a=5, b=6, c=7;
   printf("%d%d%d");
  }
  </code></pre>
  
  <p>My answer : It will give a warning as printf has not been provided with the required arguments.<br>
  And if you will run it, you will get garbage values.</p>
  
  <p>The teacher gave me zero. According to him, the answer is that the values will be printed in reverse order i.e the output will be "765". </p>
  
  <p>The catch is he is using the Turbo C++ compiler and I generally use GCC. Can I have some comments and explanation to get my marks back? Or is my answer really wrong?</p>