Home > Back-end >  C a choice
C a choice

Time:11-07

Why not add 1 c or 2?

CodePudding user response:

This is very famous suspension else problems in compiling principle, the solution is the else with the most close to it before the if match, so the problem of the else from actual belongs to the if (b<0)

CodePudding user response:

reference 1/f, play big shoot early nuclear response:
this is very famous suspension else problems in compiling principle, the solution is the else with the most close to it before the if match, so the topic of the else from actual belongs to the if (b<0)
that c=0, 0 + 1 and 1, equal to 2?

CodePudding user response:

Because before the if (a & lt; B) are not established, the subsequent if else did not perform, c is still 2

CodePudding user response:

reference 3 floor early play play nuclear response:
before because the if (a & lt; B) are not established, the subsequent if else did not perform, c is still 2
thank you

CodePudding user response:

People draw too disgusted, intentionally confuse indentation, disturbed the judgment, so the indentation in practical engineering will have his regret or be scold dead,
  • Related