若变量x,y已正确定义并赋值,以下符合C语言语法的表达式是(  )。

若变量x,y已正确定义并赋值,以下符合C语言语法的表达式是(  )。A.x+1=y B.++x,y=x- - C.x=z+10=z+y D.double(x)/

查看答案

请编写函数fun,其功能是:找出2×M整型二维数组中最大元素的值,并将此值返回调用函数。注意:部分源程序在文件PROGl

请编写函数fun,其功能是:找出2×M整型二维数组中最大元素的值,并将此值返回调用函数。注意:部分源程序在文件PROGl.C中。请勿改动主函数main和其他

查看答案

下列给定程序中函数fun的功能是:求出如下分数序列的前n项之和。和值通过函数值返回。例如,若n=5,则应输出8.3916

下列给定程序中函数fun的功能是:求出如下分数序列的前n项之和。和值通过函数值返回。例如,若n=5,则应输出8.391667。请改正程序中的错误,使其得出正确

查看答案

下列给定程序中,函数fun的功能是:计算如下公式并且把计算结果作为函数值返回。例如,若形参e的值为le-3,则函数返回值

下列给定程序中,函数fun的功能是:计算如下公式并且把计算结果作为函数值返回。例如,若形参e的值为le-3,则函数返回值为0.551690。请在下画线处填入

查看答案

有以下程序 #include <stdio.h>int fun(int n){ if(n==0)return(1);re

有以下程序 #include int fun(int n){ if(n==0)return(1);return(fun(n-1*n))

查看答案

若有定义语句:char str[]="0";,则字符串str 在内存中实际占【13】 字节。

若有定义语句:char str[]=&quot;0&quot;;,则字符串str 在内存中实际占【13】 字节。

查看答案

以下程序的输出结果是 【12】 #include <stdio.h>#define N 3#define M(n) (N

以下程序的输出结果是 【12】 #include #define N 3#define M(n) (N+1)*nmain(){ in

查看答案

有以下程序 #include <stdio.h>int k=7;int *st(int *a){ int *c=&k;i

有以下程序 #include int k=7;int *st(int *a){ int *c=&k;if(*a&gt;*c)c=a;re

查看答案

有以下程序 #include <stdio.h>main(){ int d,n=1234;while(n!=0){ d

有以下程序 #include main(){ int d,n=1234;while(n!=0){  d=n%10;n=n/10;pr

查看答案

有以下程序 #include <stdio.h>main(){ int i,sum=0;for(i=1;i<9;i+=2

有以下程序 #include main(){ int i,sum=0;for(i=1;i&lt;9;i+=2)sum+=i;printf(

查看答案

有以下程序 #include <stdio.h>main(){ int n1=0,n2=0,n3=0; char ch

有以下程序 #include main(){ int n1=0,n2=0,n3=0;  char ch;while((ch=getch

查看答案

以下程序运行时从键盘输入:1.0 2.0,输出结果是:1.000000 2.000000,请填空。 #include <

以下程序运行时从键盘输入:1.0 2.0,输出结果是:1.000000 2.000000,请填空。 #include main(){ d

查看答案

请写出与 !(a<=B)等价的C语言表达式 。

请写出与 !(a&lt;=B)等价的C语言表达式 。

查看答案

有以下程序 #include <stdio.h>main(){ FILE *fp;int i,a[6]={1,2,3,

有以下程序 #include main(){ FILE *fp;int  i,a[6]={1,2,3,4,5,6};fp=fopen(

查看答案

若有定义语句 int b=2; 则表达式(b<<2)/(3||b)的值是

若有定义语句 int b=2; 则表达式(b&lt;&lt;2)/(3||b)的值是A.4 B.8 C.0 D.2

查看答案

以下叙述中错误的是

以下叙述中错误的是A.函数的返回值类型不能是结构体类型,只能是简单类型 B.函数可以返回指向结构体变量的指针 C.可以通过指向结构体变量的指针访问所指结构体变量

查看答案

有以下程序 #include <stdio.h>struct STU{char name[9];char sex;in

有以下程序 #include struct STU{char name[9];char  sex;int score[2];};void

查看答案

有以下程序 #include <stdio.h>#include <stdlib.h>fun(int *p1,int *

有以下程序 #include #include fun(int *p1,int *p2,int  *s){  s=

查看答案

有以下程序 #include <stdio.h>func(int n){ static int num=1;num=nu

有以下程序 #include func(int n){ static int num=1;num=num+n;printf(&quot;%d&quot;,

查看答案

有以下程序 #include <stdio.h>int a=1,b=2;void fun1(int a, int b){

有以下程序 #include int a=1,b=2;void fun1(int a, int b){ printf(“%d%d”,a

查看答案

有以下程序 #include <stdio.h>main(){ char a[5][10]={"one","two",

有以下程序 #include main(){ char  a[5][10]={&quot;one&quot;,&quot;two&quot;,&quot;three&quot;,&quot;four&quot;,&quot;f

查看答案

有以下程序 #include <stdio.h>main(){ char *s="12134";int k=0,a=0

有以下程序 #include main(){ char  *s=&quot;12134&quot;;int k=0,a=0;while(s[k+1]!=&#039;

查看答案

以下选项中,合法的是

以下选项中,合法的是A.char str3[]={&#039;d&#039;, &#039;e&#039;,  &#039;b&#039;, &#039;u&#039;, &#039;g&#039;, &#039;\0&#039;}; B.char str4;  str4=&quot;he

查看答案

有以下程序(strcpy 为字符串复制函数,strcat 为字符串连接函数) #include <stdio.h>#in

有以下程序(strcpy 为字符串复制函数,strcat 为字符串连接函数) #include #include m

查看答案

有以下程序 #include <stdio.h>#define N 3void fun(int a[][N],int

有以下程序 #include #define N 3void fun(int a[][N],int  b[]){ int i,j;f

查看答案