出自:川北医学院口腔医学院
设 α 1, α 2, α 3, α 4 是三维实向量,则( )
·α 1, α 2, α 3, α 4一定线性无关
·α 1一定可由 α 2, α 3, α 4线性表出
·α 1, α 2, α 3, α 4一定线性相关
·α 1, α 2, α 3一定线性无关
有以下程序:#include <stdio.h>#define N 8void fun( int *x, int i ){*x = *(x + i);}main(){int a[N] = { 1, 2, 3, 4, 5, 6, 7, 8 }, i;fun( a, 2 );for ( i = 0; i < N / 2; i++ ){printf( "%d", a[i] );}printf( "\n" );}程序运行后的输出结果是( )。
·l 3 1 3
·2 2 3 4
·3 2 3 4
·l 2 3 4
有以下程序#include <stdio.h>void fun( char *c, int d ){*c = *c + 1; d = d + 1;printf( "%c,%c,", *c, d );}main(){char b = .a., a = .A.;fun( &b, a ); printf( "%c,%c\n", b, a );}程序运行后的输出结果是( )。
·b,B,b,A
·b,B,B,A
·a,B,B,a
·a,B,a,B
有以下程序:#include <stdio.h>main(){int a[5] = { 1, 2, 3, 4, 5 }, b[5] = { 0, 2, 1, 3, 0 }, i, s = 0;for ( i = 0; i < 5; i++ )s = s + a[b[i]];printf( "%d\n", s );}程序运行后的输出结果是( )。
·6
·10
·1l
·15
有以下程序#include <stdio.h>main(){int b[3][3] = { 0, 1, 2, 0, 1, 2, 0, 1, 2 }, i, j, t = 1;for ( i = 0; i < 3; i++ )for ( j = i; j <= i; j++ )t += b[i][b[j][i]];printf( "%d\n", t );}程序运行后的输出结果是( )。
·1
·3
·4
·9
有以下程序:#include <stdio.h>#include <string.h>struct A{ int a; char b[10]; double c; };void f( struct A t );main(){struct A a = { 1001, "ZhangDa", 1098.0 };f( a ); printf( "%d,%s,%6.1f\n", a.a, a.b, a.c );}void f( struct A t ){t.a = 1002; strcpy( t.b, "ChangRong" ); t.c = 1202.0;}程序运行后的输出结果是( )。
·100l, zhangDa, 1098.0
·1002, ChangRong, 1202.0
·100l, ChangRong, 1098.0
·1002, zhangDa, 1202.0