Home > Net >  To solve the bai
To solve the bai

Time:05-11

Why not output? !

CodePudding user response:

You remove the for the back of the semicolon, add a semicolon is over, do not enter the loop body

CodePudding user response:

reference 1st floor 姎 jacaranda response:
do you remove the for the back of the semicolon, add a semicolon will be over, don't enter the loop body

Removed is still the same, not output

CodePudding user response:

 
#include
# include
Int main (void) {
Char a, [9].//strcpy for string copy only, and not only does it copy the string content, but also will copy the end of the string
int i,j;
Strcpy (a, "computer");//a
for(int i=0; i<8; I=I + 2) {
Printf (" % c ", a [I]);
}
return 0;
}

Try again?

CodePudding user response:

You can delete some code to use the simplest can see under the validation of the output, and this can debug huh?
  •  Tags:  
  • C#
  • Related