• 2022-06-11 问题

    以下那个javascript语句是正确的() A: var.temp;temp=”hello”; B: String.temp;temp=”hello”; C: Int.temp;temp=k; D: Boolean.temp;temp=false;

    以下那个javascript语句是正确的() A: var.temp;temp=”hello”; B: String.temp;temp=”hello”; C: Int.temp;temp=k; D: Boolean.temp;temp=false;

  • 2022-06-14 问题

    定义一个函数实现交换x和y的值,并将结果正确返回。能够实现此功能的是() A: swapa(int x,int y){ int temp;temp=x;x=y;y=temp;} B: swapb(int *x,int *y){ int temp;temp=x;x=y;y=temp;} C: swapc(int *x,int *y){ int temp;temp=*x;*x=*y;*y=temp;} D: swapd(int *x,int *y){ int *temp;temp=x;x=y;y=temp;}

    定义一个函数实现交换x和y的值,并将结果正确返回。能够实现此功能的是() A: swapa(int x,int y){ int temp;temp=x;x=y;y=temp;} B: swapb(int *x,int *y){ int temp;temp=x;x=y;y=temp;} C: swapc(int *x,int *y){ int temp;temp=*x;*x=*y;*y=temp;} D: swapd(int *x,int *y){ int *temp;temp=x;x=y;y=temp;}

  • 2021-04-14 问题

    可以交换两个数的函数定义为:void swap(int *p,int *q){ int *temp;*temp=*p;*p=*q;*q=*temp;}

    可以交换两个数的函数定义为:void swap(int *p,int *q){ int *temp;*temp=*p;*p=*q;*q=*temp;}

  • 2022-05-26 问题

    There are ( ) basic paths for the following program.int FUN(int count, int flag){ int temp=0; while(count>0){ if(0==flag){ temp=count+100; } else{ if(1==flag) temp=temp+10; else temp=temp+20; } count--; } return temp;} A: 2 B: 3 C: 4 D: 4

    There are ( ) basic paths for the following program.int FUN(int count, int flag){ int temp=0; while(count>0){ if(0==flag){ temp=count+100; } else{ if(1==flag) temp=temp+10; else temp=temp+20; } count--; } return temp;} A: 2 B: 3 C: 4 D: 4

  • 2021-04-14 问题

    (2-5)执行下面语句,temp值是( )。long temp = (int) 5.6;temp %= 2;

    (2-5)执行下面语句,temp值是( )。long temp = (int) 5.6;temp %= 2;

  • 2021-04-14 问题

    阅读下面的程序: main() { int swap(); int a,b; a=3;b=10; swap(a,b); printf("a=%d,b=%d ",a,b); } swap(int a,int b) { int temp; temp=a; a=b; b=temp; } 下面的说法中,正确的是________

    阅读下面的程序: main() { int swap(); int a,b; a=3;b=10; swap(a,b); printf("a=%d,b=%d ",a,b); } swap(int a,int b) { int temp; temp=a; a=b; b=temp; } 下面的说法中,正确的是________

  • 2021-04-14 问题

    在C语言中,定义一个函数f1如下: f1(int x,int y) { static int count=0; int temp; temp=x; x=y; y=temp; count++; } 则下列叙述正确的是( ) ,,

    在C语言中,定义一个函数f1如下: f1(int x,int y) { static int count=0; int temp; temp=x; x=y; y=temp; count++; } 则下列叙述正确的是( ) ,,

  • 2022-05-26 问题

    有如下函数定义:void swap(int x,int y) { int temp; temp=x; x=y; y=temp; }在运行如下语句后, a=1;b=2; swap(a,b);a的值为 。

    有如下函数定义:void swap(int x,int y) { int temp; temp=x; x=y; y=temp; }在运行如下语句后, a=1;b=2; swap(a,b);a的值为 。

  • 2022-05-26 问题

    以下程序输出的temp的值是? #define N 5 main() { int i; int a[N]={1,2,3,4,5}; for(i=0;i <n 2;i++) { int temp; temp="a[i];" a[i]="a[N-i-1];" a[n-i-1]="temp;" } printf("%d",temp);>[/i][/i] A: 2 B: 3 C: 随机数 D: 编译出错,变量未定义

    以下程序输出的temp的值是? #define N 5 main() { int i; int a[N]={1,2,3,4,5}; for(i=0;i <n 2;i++) { int temp; temp="a[i];" a[i]="a[N-i-1];" a[n-i-1]="temp;" } printf("%d",temp);>[/i][/i] A: 2 B: 3 C: 随机数 D: 编译出错,变量未定义

  • 2022-05-31 问题

    下列语句正确的是( ) A: if(a >; b >; c) temp=a B: if((a=b) >; 0) temp=a; C: int a=b=c=4 D: int a;scanf(%d,a)

    下列语句正确的是( ) A: if(a >; b >; c) temp=a B: if((a=b) >; 0) temp=a; C: int a=b=c=4 D: int a;scanf(%d,a)

  • 1 2 3 4 5 6 7 8 9 10