C的打印输出格式
#include<stdio.h> int main() { float test1=12.3224356546565461-0.1; int test2=13; char test3[]="This is a test string !"; printf("%03d %+i %-5u %o %x %X\n",test2,test2,test2,test2,test2,test2); printf("%f,%lf ,%e, %E %g %G \n",test1,test1,test1,test1,test1,test1); printf("%s\n",test3,test3); return 0; }