• 2021-04-14
    以下程序输出的结果是()。 main(){ char w[][10]={"ABCD","EFGH","IJKL","MNOP"}, k;for(k=1;k<3;k++) printf("%s\n", &w[k][k]); }
  • FGH KL

    内容

    • 0

      以下程序的输出结果是( )。main(){ char w&#91;&#93;&#91;10&#93;={ "ABCD","EFGH","IJKL","MNOP"},k;for(k=1;k&lt;3;k++) printf("%s\n",w&#91;k&#93;);} A: ABCDFGHKL B: ABCDEFGIJM C: EFGJKO D: EFGHIJKL

    • 1

      以下程序的输出结果是______。main() char w&#91;&#93; &#91;10&#93;="ABCD","EFGH","IJKL","MNOP"),k; for(k=1;k<3;k++) printf("%s\n",w&#91;k&#93;); A: ABCD B: FGH C: KL D: M E: ABCD F: EFG G: IJ H: EFG I: JK J: O K: EFGH L: UKL

    • 2

      void main(){ char w&#91;&#93;&#91;10&#93;={"ABCD","EFGH","IJLK","MNOP"},k; for (k=1;k&lt;3;k++) printf("%s\n",w&#91;k&#93;);}程序输出的结果是_______。 A: ABCD FGH KL B: ABCD EFG IJ M C: EFG JK O D: EFGH IJKL

    • 3

      以下程序的输出结果是 ( ) main( ) char w&#91;&#93; &#91;10&#93;="ABCD","EFGH","IJKL","MNOP",k; for (k=1,k<3;k+ +)printf("%s\\n",w&#91;k&#93;); A: ABCD B: FGH C: KL D: ABC E: EFG F: IJ G: M H: EFG I: JK J: O K: EFGH L: IJKL

    • 4

      以下程序输出的结果是( )。 main(){ char w&#91;&#93;&#91;10&#93;={"ABCD","EFGH","IJKL","MNOP"}, k;for(k=1;k&lt;3;k++) printf("%s\n", &amp;w&#91;k&#93;&#91;k&#93;); } A: ABCD FGH KL B: ABC EFG IJ M C: EFGJK0 D: FGHKL