请教一个c语言的简单问题

C语言 码拜 8年前 (2016-06-02) 1403次浏览
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system(“pause”) or input loop */
int main(int argc, char *argv[]) {
double d;
d=8.0;
printf(“d is %If”,d);
return 0;
}
为啥输出的结果是d=0呢?
解决方案

80

那个应该是小写的L,你写成大写的i了

#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
	double d;
	d = 8.0;
	printf("d is %lf", d);
	return 0;
}

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明请教一个c语言的简单问题
喜欢 (0)
[1034331897@qq.com]
分享 (0)