有以下程序#include main( ){ int i,j=0;char a[]="How are you!";for ( i=0; a[i]!=’\0’; i++ )if ( a[i] != ' ' )a[j++] = a[i];a[j] = '\0';printf( "%s\n",a );}程序运行后的输出结果是( )
A. Howareyou!u!
B. areyou!
C. you!
D. Howareyou!
有以下程序#include main( ){ int i, k=0, a[10];for( i=0; i<10; i++ ) a[i]=i;for( i=0; i<4; i++ ) k += a[i] + i;printf("%d\n", k);}程序运行后的输出结果是( )
A. 6
B. 10
C. 12
D. 16