什么是"条件"用C面试考试? [英] What's the "condition" in C interview test?
本文介绍了什么是"条件"用C面试考试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有可能您好
使用单条件两次打印
?
如果条件
的printf(你好);
其他
的printf(世界);
解决方案
如果(的printf(你好)== 0)
的printf(你好);
其他
的printf(世界);
: - )
Would it be possible to print Hello
twice using single condition
?
if "condition"
printf ("Hello");
else
printf("World");
解决方案
if ( printf("Hello") == 0 )
printf ("Hello");
else
printf ("World");
:-)
这篇关于什么是"条件"用C面试考试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文