1 |
28.abs(-1.0)的运行结果为1。() 正确 错误 |
|
2024-10-04 |
2 |
第 1 题 bin(10)的运行结果'0b1010';int("1101",2)的运行结果是13。( ) A:正确 B:错误 |
|
2024-08-19 |
3 |
print(f'{101/7:7.2f}{101%8:2d}')的运行结果是( )的运行结果是()。 A.{:7.2f}{:2d} B.□□14.43□ |
|
2024-07-22 |
4 |
#include <stdio.h> struct abc {int a,b, c; }; main() {struct abc s[2]={{1,2,3},{4,5,6} |
|
2024-07-14 |
5 |
#include<stdio.h> struct cmplx { int x; int y; } cnum[2]={1, 3, 2,7}; main( ) { |
|
2024-07-14 |
6 |
#include<stdio.h> main( ) {struct stu {int num; char a[5]; float score; }m={1234,”wang”, |
|
2024-07-14 |
7 |
#include<stdio.h> struct st { int x; int y; } a[2]={5, 7, 2, 9} ; main() { printf(" |
|
2024-07-14 |
8 |
#include <stdio.h> char s[]=”ABCD”; main() { char *p; for(p=s;p<s+4;p++) printf(“%c %s |
|
2024-07-14 |
9 |
#include<stdio.h> main( ) { static char a[ ]=”Program”, *ptr; for(ptr=a, ptr<a+7; ptr+=2 |
|
2024-07-14 |
10 |
#include <stdio.h> main( ) { int a[ ]={1, 2, 3, 4, 5, 6}; int x, y, *p; p = &a[0]; x |
|
2024-07-14 |
11 |
#include<stdio.h> main() { int arr[ ]={30,25,20,15,10,5}, *p=arr; p++; printf(“%d\n”,*(p+ |
|
2024-07-14 |
12 |
#include<stdio.h> main ( ) { int a[]={1, 2, 3, 4, 5} ; int x, y, *p; p=a; x=*(p+2); p |
|
2024-07-14 |
13 |
#include <stdio.h> main( ) { char s[]=”abcdefg”; char *p; p=s; printf(“ch=%c\n”,*(p+5)); |
|
2024-07-14 |
14 |
# include < stdio .h > main ( ) { int x[ ] = {10, 20, 30, 40, 50 }; int *p ; p=x; printf |
|
2024-07-14 |
15 |
#include <stdio.h> int max(int x, int y); main() { int a,b,c; a=7;b=8; c=max(a,b); |
|
2024-07-14 |
16 |
#include <stdio.h> unsigned fun6(unsigned num) { unsigned k=1; do { k*=num%10; num/=10; |
|
2024-07-14 |
17 |
#include <stdio.h> int fac(int n) { int f=1,i; for(i=1;i<=n;i++) f=f * i; return(f); |
|
2024-07-14 |
18 |
#include <stdio.h> nt fun(int a, int b) { if(a>b) return(a); else return(b); } main() |
|
2024-07-14 |
19 |
#include <stdio.h> int m=4; int func(int x,int y) { int m=1; return(x*y-m); } main() {i |
|
2024-07-14 |
20 |
#include<stdio.h> func(int x) { x=10; printf(“%d, ”,x); } main( ) { int x=20; func(x); |
|
2024-07-14 |
21 |
#include <stdio.h> int min( int x, int y ) { int m; if ( x> y ) m = x; else m = y; |
|
2024-07-14 |
22 |
#include <stdio.h> int Sub(int a, int b) {return (a- b);} main() {int x, y, result = 0 |
|
2024-07-14 |
23 |
#include"stdio.h" main() {int j,k; static int x[4][4],y[4][4]; for(j=0;j<4;j++) fo |
|
2024-07-11 |
24 |
#include <stdio.h> f(int b[],int n) {int i,r; r=1; for (i=0;i<=n;i++) r=r*b[i]; |
|
2024-07-11 |
25 |
#include <stdio.h> main() {int a[2][3]={{1,2,3},{4,5,6}}; int b[3][2],i,j; for(i=0;i<=1 |
|
2024-07-11 |