使用sprintf() 将字符串添加到buf数组中, 使用scanf将字符串添加到变量中 /*字符串sprintf和sscanf*/#include<stdio.h>intmain() {charbuf[20] = {0};charch =0;intval =0;floatfval =0.0f; printf("%c %g %d\n",'c',2.3,1); sprintf(buf,"%c %g %d",'c',2.3,1);//将数据存放在数组中p...