________ number of deaths from heart disease will be reduced greatly if people are persuaded to eat more fruit and vegetables.
If you are a buyer on alibaba.com and want to contact sellers, you may simply click the “contact now” button to send quotation. ( )
阅读下面算法。说明该算法的功能。Typedef char DataType;typedef struct node{DataType data;struct node *next;}ListNode;typedef ListNode *Linklist;Linklist what(Linklist h){/*h是无头结点的单链表的头指针*/{if(h&&h->next){q=h;h=h->next;p=h;while(p->next)p=p->next;p->next=q;q->next=NULL;h=q;}return(h);}
以下程序运行时,若从键盘输入5,则输出结果是( )。 main() { int a; scanf("%d",&a); if(a++>5) printf("%d\n",a); else printf("%d\n",a--);}
以下程序的输出结果是( )。 main() { printf( "%d\n", fac(5) );} fac(int n) { int s; if(n==1) return 1; else return n*fac(n-1); }
对下面程序描述错误的是( )。 #include <stdio.h> main() { int c; FILE *fp; if((fp=fopen("file.dat","rb+"))!=NULL) { c=fgetc(fp); c=c+1;} fseek(fp,0,SEEK_SET); fputc(i,fp); fclose(fp); }
对于以下程序,说法正确的是( )。 #include <stdio.h> main() { FILE *fp; fp=fopen("quiz.txt", "w"); if(fp!=NULL) { fprintf(fp,"%s\n", "success!"); fclose(fp); printf("ok!"); } }