行列置换,和组数反向排序
2021-04-11 14:27
标签:select 置换 反向 val topic std type class printf A)1,2,4,9,6, B)2,9,6,1,4, C)1,4,6,0,2,9,0,0, D)2,9,0,0,1,4,6,0, A)0 9 8 7 6 5 1 2 3 4 B)4 3 2 1 0 9 8 7 6 5 C)0 9 8 7 6 5 4 3 2 1 D)5 6 7 8 9 0 1 2 3 4 行列置换,和组数反向排序 标签:select 置换 反向 val topic std type class printf 原文地址:https://www.cnblogs.com/wven/p/13359029.html
main()
{
int i, k;
int array[4][2] = {{1,2}, {4,9}, {6}};
for (i=0; i for (k=0; k {
printf("%d,", array[k][i]);
}
printf("\n");
}答案:C
#include
void fun( int *s, int n1, int n2 )
{ int i,j,t;
i=n1; j=n2;
while( i
i++; j--;
}
}
main()
{
int a[10] = { 1,2,3,4,5,6,7,8,9,0} ,i, *p = a;
fun( p,0,3 ); fun( p,4,9 ); fun( p,0,9 );
for( i=0; i printf("\n" );
}
程序运行后的输出结果是答案:D