根据VS2010操作讲解,熟练使用VS2010并编写、编译、执行下面的程序。将运行结果截图上传至答题区。
#include
int main
{
printf(“This is a C program.
”);
return 0;
}
#include
int main
{
printf(“This is a C program.
”);
return 0;
}
举一反三
- 分析下面程序的执行结果。 #include int main() { printf("Hello,China!\n"); printf("Hello Kitty!\n"); return 0; }
- 请写出以下程序的运行结果#include int main() { printf(Hello World! ); return 0; }
- 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; }
- 下面程序运行后的输出结果是____。 #include <stdio.h> int main() { printf("%d ", NULL); return 0; }
- 下面程序的运行结果是:We,s()。 #include int main() { printf (“%s, %c ”, "We", *"students"); return 0; }