• 2022-06-07 问题

    执行以下程序后,输出结果为:#include <stdio.h>int count(char array[]){int k = 0, sum = 1;while(array[k++] != '\0'){if(array[k] == ' ') // 空格sum++;}printf("k=%d,", k);return(sum);}void main(){char array[] = "I love computer very munch!";printf("%d", count(array));}

    执行以下程序后,输出结果为:#include <stdio.h>int count(char array[]){int k = 0, sum = 1;while(array[k++] != '\0'){if(array[k] == ' ') // 空格sum++;}printf("k=%d,", k);return(sum);}void main(){char array[] = "I love computer very munch!";printf("%d", count(array));}

  • 2022-07-24 问题

    (5)、 [单选题] (2分)Which of the following statements is wrong according to the passage? _______ A: The long-term goals cannot amount to very munch without achieving short-term goals. B: The intermediate goals build on the foundation of the short-term goals. C: Life is a static thing, thus never allowing a long-term goal to limit us. D: We should often add new short-term goals to what have been completed.

    (5)、 [单选题] (2分)Which of the following statements is wrong according to the passage? _______ A: The long-term goals cannot amount to very munch without achieving short-term goals. B: The intermediate goals build on the foundation of the short-term goals. C: Life is a static thing, thus never allowing a long-term goal to limit us. D: We should often add new short-term goals to what have been completed.

  • 1