填空题

以下程序的输出结果是______。
#include
#include
char *fun(char *t)
char *p=t;
return (p+strlen(t)/2);main()
char *str="abcdefgh";
str=fun(str);
puts(str);

【参考答案】

efgh
<上一题 目录 下一题>
热门 试题

填空题
设有定义语句:int a[][3]=0,1,2;,则数组元素a[1][2]的值为______。
填空题
以下程序中函数fun的功能是:构成一个如图所示的带头结点的单向链表,在结点的数据域中放入了具有两个字符的字符串。函数disp的功能是显示输出该单链表中所有结点中的字符串。请填空完成函数disp。#includetypedef struct node *链表结点结构* char sub[3]; struct node *next;Node;Node fun(char s) *建立链表* ……void disp(Node *h) Node *p; p=h->next;while(______) printf( %s n ,P->sub); p= p->next; main() Node *hd; hd=fun(); disp(hd); printf( n );
相关试题
  • 以下叙述中错误的是______。
  • 数据独立性是数据库技术的重要特点之一。所...
  • 设有定义:int n1=0,n2,*p=&n2...
  • 有以下程序#includemain() char c1=...
  • 在C 语言中,只有在使用时才占用内存单元...