C语言的printf一些骚操作

#include <stdio.h>

int main()
{
printf("打印五个字符:%c %c %c %c %c ", 70, 105, 115, 104, 67);
printf("前边用 填充:%10d ", 2015);
printf("前边用0填充:%010d ", 2015);
printf("右对齐,保留2位:%10.2f ", 3.1416);
printf("左对齐,保留3位:%-10.3f ", 3.1416);
printf("右对齐,指数形式:%10e ", 520000.0);
printf("左对齐,指数形式:%-10E ", 520000.0);

return 0;
}

原文地址:https://www.cnblogs.com/greycdoer0/p/10915554.html