C programming language: integer output formatted code

The process of writing the contents of important treasures of content, content is the content of the following language based on the C: Content formatted integer output.
#include <stdio.h>
int main ()
{
int value =. 5;

printf ("%1dn", value);
printf ("%2dn", value);
printf ("%3dn", value);
printf ("%4dn", value);
return 1;
}

 




gcc compiler output



5
 5
  5
   5





 

Guess you like

Origin www.cnblogs.com/szfutc/p/11241107.html