Home > Back-end >  Excuse me each great god, and for C language into the summer
Excuse me each great god, and for C language into the summer

Time:09-18

CodePudding user response:

Pictures or sideways, can't see

CodePudding user response:

Looks difficult, still don't see

CodePudding user response:

Excuse me, is this the university entrance exam topic which province?

CodePudding user response:

for(i=0; IIf (a [I] & gt; 22)={
c++;
If (c> {
=5)The return I - 5;
}
}
The else {c=0; }
}
return -1;
Brace position is wrong, so in order to run, that the else corresponding brackets if (c>=5) is unable to do so, or
for(i=0; IIf (a [I] & gt; 22)={
c++;
If (c>
=5)The return I - 5;
Elsecontinue;
}
c=0;
}
return -1;
This is similar with the title, but because I don't know you return 1} above is your own painting still had, had the answer is the second, if not the title is wrong

CodePudding user response:

 int fun (int a [], int n)//a deposit amount of daily temperature values, n storage days this month 
{int I, c=0;
For (I=0; IIf (a [I] & gt;=22)//(1)
{c + +;
If (c>=5) return I - 5;//(2)
The else continue;//(3)
}
c=0;//(4)
}
return -1;
}

Take a look at this case,

CodePudding user response:

If this is true of the college entrance examination questions, the program design of the level is too low, feel this is a very bad programming style, using the continue statement is unnecessary, this is a purely for the exam and the topic,
  • Related