填空题:现有两个C程序文件T18.c和myfun.c同在TC系统目录(文件夹)下,其中T18.c文件如下:#include <s

  • 题目分类:C语言
  • 题目类型:填空题
  • 查看权限:VIP
题目内容:
现有两个C程序文件T18.c和myfun.c同在TC系统目录(文件夹)下,其中T18.c文件如下:
#include <stdio.h>
#include "myfun.c"
main()
{fun();printf("\n");}
myfun.c文件如下:
void fun()
{char s[80],c; int n=0;
while((c=getchar())!=′\n′) s[n++]=c;
n--;
while(n>=0) printf("%c",s[n--]);
}
当编译连接通过后,运行程序T18时,输入Thank!则输出结果是:_____。
参考答案:
答案解析:

A Pay Rise or Not?

A Pay Rise or Not?“Unless I get a rise, I’ll have a talk with the boss, Henry Ma

查看答案

当运行以下程序时,输入abcd,程序的输出结果是:______。 insert(charstr[]) {inti; i=

当运行以下程序时,输入abcd,程序的输出结果是:______。 insert(charstr[]) {inti; i=strlen(str); while(i

查看答案

在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程: Private Sub Command1_Cli

在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程: Private Sub Command1_Click() Static x As Int

查看答案

以下关于MsgBox的叙述中,错误的是( )。

以下关于MsgBox的叙述中,错误的是( )。A.MsgBox函数返回一个整数B.通过MsgBox函数可以设置信息框中图标和按钮的类型C.MsgBox语句没有返

查看答案

请阅读下列程序代码,然后将程序的执行结果补充完整。 publicclassthrowsException{ static

请阅读下列程序代码,然后将程序的执行结果补充完整。 publicclassthrowsException{ staticvoidProc(intsel) thr

查看答案