title: How to print a positive number as a negative number via printf
body: <p>While reading about printf(),I found that it can print numbers as positive or negative as desired by the user by following code(for -).But the code doesnt work and the output is a positive value.Please mention where the error is.Thanks</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  int main()
  {
    printf (" %-d\n", 1977);
    return 0;
  }
  </code></pre>