一道牛公司C语言的面试题? 求解.该如何处理
一道牛公司C语言的面试题? 求解....
int main()
{
if()
{
printf("Hello ");
}
else
{
printf("World !!!");
}
return 0;
}
在if里面请写入语句 使得打印出 hello world。
------解决方案--------------------
int main()
{
if()
{
printf("Hello ");
}
else
{
printf("World !!!");
}
return 0;
}
在if里面请写入语句 使得打印出 hello world。
------解决方案--------------------
- C/C++ code
#include <cstdio> #include <iostream> using namespace std; int main() { if(!printf("Hello ")) { printf("Hello "); } else { printf("World !!!"); } return 0; }
------解决方案--------------------