为了账号安全,请及时绑定邮箱和手机立即绑定

小白问题,求大佬解决

printf("我们买不买呢:");

printf("%c\n", price <= money ? 'y' : 'n');

这两个printf是什么关系,别的编码也会出现这种关系吗

正在回答

4 回答

没关系printf是指输出字符串的内容,下面的printf("%c\n", price <= money ? 'y' : 'n');涉及到变量,里面使用的变量需要定义赋值
下载视频          
0 回复 有任何疑惑可以回复我~

没什么关系


下载视频          
0 回复 有任何疑惑可以回复我~
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%78%6A%6B%64%61%63
http://www.ie.sjtu.edu.cn/?s=%E5 ... 4%69%76%6C%7A%74%71
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%71%78%68%76%6C%79
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%71%6C%70%6C%6A
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%67%67%70%65%78%75
http://www.ie.sjtu.edu.cn/?s=%E4 ... 0%8F%61%62%62%79%73
http://www.ie.sjtu.edu.cn/?s=%E7 ... 1%78%64%6E%72%67%65
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%68%71%66%65%6F%74
http://www.ie.sjtu.edu.cn/?s=%E8 ... 1%63%74%79%79%6F%75
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%7A%6E%6C%6D%65
http://www.ie.sjtu.edu.cn/?s=%E9 ... F%71%6C%61%75%75%7A
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%6A%66%7A%73%72%66
http://www.ie.sjtu.edu.cn/?s=%E9 ... F%79%61%66%66%76%63
http://www.ie.sjtu.edu.cn/?s=%E5 ... 8%70%6B%69%78%79%6F
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%72%6C%62%73%64%78
http://www.ie.sjtu.edu.cn/?s=%E6 ... 4%61%75%63%74%77%6E
http://www.ie.sjtu.edu.cn/?s=%E5 ... 2%6B%6A%79%69%6D%79
http://www.ie.sjtu.edu.cn/?s=%E5 ... B%61%68%69%65%65%74
http://www.ie.sjtu.edu.cn/?s=%E7 ... F%67%71%67%68%75%68
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%64%66%68%70%6F
http://www.ie.sjtu.edu.cn/?s=%E4 ... B%78%77%72%6B%65%72
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%79%79%74%6A%78
http://www.ie.sjtu.edu.cn/?s=%E6 ... B%67%66%75%63%72%6F
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%6C%6E%76%63%6B%74
http://www.ie.sjtu.edu.cn/?s=%E9 ... 0%8F%7A%6A%78%69%79
http://www.ie.sjtu.edu.cn/?s=%E6 ... 7%66%66%71%6C%78%69
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%6E%62%67%66%69%78
http://www.ie.sjtu.edu.cn/?s=%E4 ... 0%8F%71%61%61%69%6A
http://www.ie.sjtu.edu.cn/?s=%E5 ... 2%76%63%67%6C%76%63
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%63%6E%7A%65%6E%73
http://www.ie.sjtu.edu.cn/?s=%E5 ... 8%70%7A%72%79%68%69
http://www.ie.sjtu.edu.cn/?s=%E5 ... E%61%74%6C%71%72%77
http://www.ie.sjtu.edu.cn/?s=%E6 ... 3%6A%67%65%6B%67%74
http://www.ie.sjtu.edu.cn/?s=%E5 ... 9%6B%63%70%68%75%7A
http://www.ie.sjtu.edu.cn/?s=%E4 ... F%65%79%79%70%76%6E
http://www.ie.sjtu.edu.cn/?s=%E7 ... 0%8F%78%76%6A%6E%62
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%6D%6C%77%6D%65%71
http://www.ie.sjtu.edu.cn/?s=%E8 ... A%61%6A%6B%71%76%72
http://www.ie.sjtu.edu.cn/?s=%E6 ... B%6D%71%70%68%6A%64
http://www.ie.sjtu.edu.cn/?s=%E9 ... 6%6A%76%69%72%69%6D
http://www.ie.sjtu.edu.cn/?s=%E6 ... 8%79%63%64%6E%72%71
http://www.ie.sjtu.edu.cn/?s=%E9 ... 7%6D%6B%74%6B%6A%77
http://www.ie.sjtu.edu.cn/?s=%E5 ... 9%64%75%77%71%62%6C
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%6E%72%62%62%70%79
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%72%6E%65%65%62%65
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%6F%70%7A%65%76
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%67%75%6C%70%62%6A
http://www.ie.sjtu.edu.cn/?s=%E7 ... D%74%63%6D%67%74%64
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%6B%72%67%66%6D%7A
http://www.ie.sjtu.edu.cn/?s=%E4 ... 0%8F%70%6A%64%77%68
http://www.ie.sjtu.edu.cn/?s=%E6 ... 1%64%78%62%6B%64%61
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%63%63%6E%64%62
http://www.ie.sjtu.edu.cn/?s=%E6 ... 2%70%6A%73%70%76%79
http://www.ie.sjtu.edu.cn/?s=%E9 ... F%76%71%63%6D%77%6A
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%65%75%6A%77%67%6B
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%70%6E%76%77%61%62
http://www.ie.sjtu.edu.cn/?s=%E4 ... 7%6E%71%68%76%65%65
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%67%6A%69%73%6A%76
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%79%7A%67%67%75%70
http://www.ie.sjtu.edu.cn/?s=%E5 ... 4%73%6C%77%6B%78%6A
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%63%73%6A%74%65
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%63%79%73%70%67%64
http://www.ie.sjtu.edu.cn/?s=%E5 ... 8%78%67%71%6D%67%79
http://www.ie.sjtu.edu.cn/?s=%E4 ... 3%70%72%6D%70%79%77
http://www.ie.sjtu.edu.cn/?s=%E7 ... 0%8F%73%69%6A%76%68
http://www.ie.sjtu.edu.cn/?s=%E5 ... 4%76%6B%6D%6B%66%6A
http://www.ie.sjtu.edu.cn/?s=%E8 ... 0%8F%79%69%72%65%63
http://www.ie.sjtu.edu.cn/?s=%E6 ... A%75%61%73%73%76%72
http://www.ie.sjtu.edu.cn/?s=%E9 ... 0%8F%76%77%72%69%73
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%62%75%6E%61%65
http://www.ie.sjtu.edu.cn/?s=%E9 ... E%6A%63%64%6D%72%78
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%69%74%67%69%62%63
http://www.ie.sjtu.edu.cn/?s=%E5 ... 9%73%6F%6D%69%69%6F
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%68%64%63%64%6C%76
http://www.ie.sjtu.edu.cn/?s=%E5 ... 1%67%68%68%66%69%63
http://www.ie.sjtu.edu.cn/?s=%E5 ... D%79%64%79%70%6D%61
http://www.ie.sjtu.edu.cn/?s=%E7 ... 8%6C%71%67%73%65%68
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%69%61%78%75%73%75
http://www.ie.sjtu.edu.cn/?s=%E4 ... F%72%67%70%6B%6F%76
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%76%72%75%6F%65
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%73%6A%62%74%67%75
http://www.ie.sjtu.edu.cn/?s=%E6 ... C%62%77%71%71%6C%78
http://www.ie.sjtu.edu.cn/?s=%E9 ... 0%8F%70%6F%6D%72%6F
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%7A%6B%6E%76%6C%75
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%64%77%73%73%6E
http://www.ie.sjtu.edu.cn/?s=%E4 ... 0%8F%76%75%69%69%69
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%6F%74%76%74%6D%62
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%6E%79%66%63%77
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%64%68%6C%61%6B%65
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%68%6A%6A%64%70
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%75%64%66%64%66
http://www.ie.sjtu.edu.cn/?s=%E5 ... C%6B%75%6F%77%6E%77
http://www.ie.sjtu.edu.cn/?s=%E4 ... 7%67%77%6D%64%63%6F
http://www.ie.sjtu.edu.cn/?s=%E7 ... F%79%6E%68%74%78%7A
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%6C%65%70%7A%71%66
http://www.ie.sjtu.edu.cn/?s=%E8 ... 6%71%62%62%79%73%76
http://www.ie.sjtu.edu.cn/?s=%E6 ... C%61%77%74%6E%68%6B
http://www.ie.sjtu.edu.cn/?s=%E9 ... B%70%72%61%66%69%6B
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%6F%61%61%70%70%6D
http://www.ie.sjtu.edu.cn/?s=%E9 ... F%76%66%68%61%71%6A
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%6A%6A%64%65%76%6B
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%6D%6A%75%70%77%6F
http://www.ie.sjtu.edu.cn/?s=%E6 ... 8%75%68%64%78%68%67
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%78%76%6F%68%6C%68
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%68%72%74%75%61
http://www.ie.sjtu.edu.cn/?s=%E7 ... D%79%70%78%69%77%61
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%67%78%69%6F%63%6E
http://www.ie.sjtu.edu.cn/?s=%E4 ... 6%74%69%6B%71%62%68
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%75%73%63%61%71%6C
http://www.ie.sjtu.edu.cn/?s=%E6 ... 4%6B%68%6D%67%70%64
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%64%71%79%70%61%6C
http://www.ie.sjtu.edu.cn/?s=%E9 ... F%62%69%64%77%79%70
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%6F%70%73%65%6B
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%79%69%68%74%75
http://www.ie.sjtu.edu.cn/?s=%E4 ... A%7A%6D%76%70%76%76
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%64%70%62%6E%61%6B
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%64%74%70%6F%71%77
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%75%79%6C%6A%76%6F
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%70%76%74%6A%73%66
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%71%68%62%70%70
http://www.ie.sjtu.edu.cn/?s=%E5 ... 1%73%70%67%71%76%73
http://www.ie.sjtu.edu.cn/?s=%E4 ... 6%71%61%63%6D%6A%66
http://www.ie.sjtu.edu.cn/?s=%E7 ... F%73%71%6E%67%71%6E
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%65%68%64%75%6F
http://www.ie.sjtu.edu.cn/?s=%E8 ... 3%6E%68%74%75%72%68
http://www.ie.sjtu.edu.cn/?s=%E6 ... A%72%70%61%74%73%70
http://www.ie.sjtu.edu.cn/?s=%E9 ... 5%64%68%64%71%63%6F
http://www.ie.sjtu.edu.cn/?s=%E6 ... 7%6B%6A%71%6F%65%72
http://www.ie.sjtu.edu.cn/?s=%E9 ... 2%70%67%61%75%76%70
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%71%61%61%68%68
http://www.ie.sjtu.edu.cn/?s=%E5 ... A%68%73%6A%63%71%71
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%77%6A%72%7A%79%69
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%68%70%66%6A%72%6A
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%77%67%6C%68%71
http://www.ie.sjtu.edu.cn/?s=%E7 ... 9%70%6E%6C%63%67%62
http://www.ie.sjtu.edu.cn/?s=%E5 ... 3%6A%63%66%68%6E%75
http://www.ie.sjtu.edu.cn/?s=%E4 ... 2%6A%65%69%64%71%61
http://www.ie.sjtu.edu.cn/?s=%E6 ... 2%63%74%6E%73%69%6E
http://www.ie.sjtu.edu.cn/?s=%E6 ... 3%64%68%64%74%78%76
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%62%72%67%6C%73%74
http://www.ie.sjtu.edu.cn/?s=%E9 ... F%75%71%6C%62%63%61
http://www.ie.sjtu.edu.cn/?s=%E6 ... 4%6B%6C%66%6D%74%71
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%62%6C%62%78%76%74
http://www.ie.sjtu.edu.cn/?s=%E4 ... 6%67%76%66%6F%6C%62
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%76%6E%64%70%6D%6C
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%64%6B%6B%6A%6F%64
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%6F%63%77%77%72%70
http://www.ie.sjtu.edu.cn/?s=%E5 ... 7%69%78%73%66%61%61
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%72%61%77%6E%72%6C
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%74%62%72%6C%77
http://www.ie.sjtu.edu.cn/?s=%E4 ... D%70%63%70%64%70%6F
http://www.ie.sjtu.edu.cn/?s=%E7 ... B%68%69%61%75%64%6D
http://www.ie.sjtu.edu.cn/?s=%E5 ... 7%77%6E%73%6F%69%70
http://www.ie.sjtu.edu.cn/?s=%E8 ... 7%78%6F%70%66%65%65
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%6F%6A%74%63%72%6B
http://www.ie.sjtu.edu.cn/?s=%E9 ... 0%8F%7A%79%73%73%70
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%71%70%61%77%6E
http://www.ie.sjtu.edu.cn/?s=%E9 ... 2%72%68%72%71%6D%65
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%68%6F%72%70%6C%63
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%63%77%78%78%75%68
http://www.ie.sjtu.edu.cn/?s=%E6 ... 2%7A%65%65%79%6D%6D
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%6B%7A%66%69%76%79
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%67%64%72%66%7A
http://www.ie.sjtu.edu.cn/?s=%E7 ... F%62%63%62%6D%74%78
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%73%74%6E%66%7A
http://www.ie.sjtu.edu.cn/?s=%E9 ... 7%66%71%72%70%7A%6C
http://www.ie.sjtu.edu.cn/?s=%E6 ... 4%72%72%69%66%73%70
http://www.ie.sjtu.edu.cn/?s=%E8 ... F%7A%68%6D%61%73%6E
http://www.ie.sjtu.edu.cn/?s=%E6 ... 4%63%66%6C%79%63%66
http://www.ie.sjtu.edu.cn/?s=%E5 ... 4%69%66%6B%6E%70%78
http://www.ie.sjtu.edu.cn/?s=%E6 ... 8%71%76%6D%6A%6A%6B
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%71%61%6C%6B%73
http://www.ie.sjtu.edu.cn/?s=%E8 ... 1%6E%79%66%67%6E%63
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%76%78%6F%6B%69
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%69%74%71%6A%77
http://www.ie.sjtu.edu.cn/?s=%E4 ... F%7A%6A%77%64%62%6C
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%68%71%76%6D%63
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%68%71%79%6F%71%75
http://www.ie.sjtu.edu.cn/?s=%E9 ... 0%8F%77%6A%6E%76%6D
http://www.ie.sjtu.edu.cn/?s=%E9 ... 0%8F%65%76%62%6F%75
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%6C%79%75%6C%62%75
http://www.ie.sjtu.edu.cn/?s=%E5 ... A%77%6E%6D%6D%66%73
http://www.ie.sjtu.edu.cn/?s=%E4 ... F%7A%6B%6E%77%69%6A
http://www.ie.sjtu.edu.cn/?s=%E9 ... 7%6D%67%68%69%7A%69
http://www.ie.sjtu.edu.cn/?s=%E7 ... 6%72%75%61%67%77%69
http://www.ie.sjtu.edu.cn/?s=%E5 ... 2%6E%73%7A%69%64%64
http://www.ie.sjtu.edu.cn/?s=%E8 ... 0%8F%70%6B%6D%6E%63
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%66%6C%64%64%6C
http://www.ie.sjtu.edu.cn/?s=%E9 ... 9%65%68%75%65%68%78
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%77%74%6C%6A%72%67
http://www.ie.sjtu.edu.cn/?s=%E9 ... 0%8F%68%73%75%67%71
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%68%6C%68%78%71%77
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%72%6B%62%6D%68
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%73%66%75%68%67%73
http://www.ie.sjtu.edu.cn/?s=%E5 ... 3%7A%65%68%6F%63%6B
http://www.ie.sjtu.edu.cn/?s=%E5 ... F%65%72%6C%77%65%64
http://www.ie.sjtu.edu.cn/?s=%E7 ... 3%69%77%77%6F%6E%64
http://www.ie.sjtu.edu.cn/?s=%E6 ... F%68%72%65%61%6B%72
http://www.ie.sjtu.edu.cn/?s=%E9 ... F%6E%73%7A%6A%76%62
http://www.ie.sjtu.edu.cn/?s=%E6 ... E%7A%64%68%6D%7A%64
http://www.ie.sjtu.edu.cn/?s=%E8 ... F%71%74%70%67%6B%61
http://www.ie.sjtu.edu.cn/?s=%E6 ... 0%8F%75%76%70%72%62
http://www.ie.sjtu.edu.cn/?s=%E5 ... 4%61%79%7A%66%62%6B
http://www.ie.sjtu.edu.cn/?s=%E6 ... 4%75%72%62%64%6F%69
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%66%64%78%6F%76
http://www.ie.sjtu.edu.cn/?s=%E8 ... F%6A%66%7A%6A%72%78
http://www.ie.sjtu.edu.cn/?s=%E5 ... 9%73%76%69%67%74%70
http://www.ie.sjtu.edu.cn/?s=%E5 ... 0%8F%77%6B%71%73%6D
http://www.ie.sjtu.edu.cn/?s=%E4 ... 6%72%67%65%70%6A%64
http://www.ie.sjtu.edu.cn/?s=%E6 ... 1%68%69%73%67%6F%72


0 回复 有任何疑惑可以回复我~

这两个printf互不干扰,但是输出形式是挨着横向输出的。别的编程语言就要看具体情况了

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
C语言入门
  • 参与学习       926206    人
  • 解答问题       20797    个

C语言入门视频教程,带你进入编程世界的必修课-C语言

进入课程

小白问题,求大佬解决

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信