首页 > 试题广场 >

假设一个程序开始处有如下声明: int imat =

[问答题]
假设一个程序开始处有如下声明:
int imat = 2
long shot = 53456
char grade = 'A'
float log = 2.71828
在下面printf()语句中添上合适的类型说明符:
printf ("The odds against the %—— were %—— to 1.\n", imate, shot);
printf ("A score of %—— is not an %—— grade.\n", log, grade);
推荐
printf ("The odds against the %d were %1d to 1.\n", imate, shot);
printf ("A score of %f is not an %c grade.\n", log, grade);
发表于 2018-05-05 22:14:44 回复(0)

printf ("The odds against the %d were %ld to 1.\n", imate, shot);
printf ("A score of %f is not an %c grade.\n", log, grade);
发表于 2020-02-11 11:17:35 回复(0)