#include
int main()
{
printf('Hello! ');
return 0;
}
举一反三
- 以下是一个简单、正确的C语言程序 #include int main() { printf("Hello! "); return 0; }
- 请写出以下程序的运行结果#include int main() { printf(Hello World! ); return 0; }
- 分析下面程序的执行结果。 #include int main() { printf("Hello,China!\n"); printf("Hello Kitty!\n"); return 0; }
- 以下哪一个是正确的C语言程序结构? A: B: include int main() { return 0; } C: int main() D: include { return 0; } E: int main() { F: include return 0; } G: H: include int main() { } return 0;
- 关于以下程序,正确的说法是( )。 #include int main(void) {int x=0,y=0,z=0; if(x=y+z) printf("***"); else printf("###"); return(0); }
内容
- 0
以下程序的执行结果是()#include<stdio.h>int main(){printf("1** #2# ");printf(" 789 ");return 0;}
- 1
Which of the following program is right? A: include <stdio.h> int main(); { /*programming*/ printf("programming!\n"); return 0; } B: include <stdio.h> int main() { /*programming*/ printf("programming!\n"); return 0; } C: include <stdio.h> void main() { /*programming*/ printf("programming!\n") return 0; } D: include <stdio.h> int mian() { /*programming*/ printf("programming!\n"); return 0; }
- 2
以下程序没有语法问题的是() A: B: include<;stdio.h>;int main( ){int x , y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;} C: D: include<;stdio.h>;int main( ){int x = 3 ;y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;} E: F: include<;stdio.h>;int main( ){int x = 3 ,y ; printf( "%d\n" , x / y ) ;y = 5; return 0 ;} G: H: include<;stdio.h>;int main( ){int x = 3 , y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;}
- 3
以下程序中,运行结果是36的有()。 A: include <stdio.h> B: define M(y) y*y int main() { printf("%d\n",M(6+0)); return 0; } C: include <stdio.h> D: define M(y) (y)*(y) int main() { printf("%d\n",M(6+0)); return 0; } E: include <stdio.h> int M(int y) { return y*y; } int main() { printf("%d\n",M(6+0)); return 0; } F: include <stdio.h> int M(int y) { return (y)*(y); } int main() { printf("%d\n",M(6+0)); return 0; }
- 4
对于下列程序,判断正确的是( )。 #include int main() { int x=3,y=0,z=0; if(x=y+z) printf(“****”); else printf(“####”); return 0; }