Home > Back-end >  The cauldron, could you tell me why always vs remind me first else should enter a statement, but the
The cauldron, could you tell me why always vs remind me first else should enter a statement, but the

Time:12-22


#include
#include
Int main (void)
{
Char c=getchar ();
If ((c & gt;='A' & amp; & C & lt;='Z') | | (c & gt;='a' & amp; & C & lt;='z'));
{printf (" % c is a letter ", c); }
The else {
If (c & gt;='0' & amp; & C & lt;='9')
{
Printf (" % c is a number ", c);
}
The else {
Printf (" % c is other characters ", c);
}

}
return 0;
}

CodePudding user response:

If extra semicolon at the end of line above it,
Rote memorization,

CodePudding user response:

No. This is much more ':'
reference
if ((c & gt;='A' & amp; & C & lt;='Z') | | (c & gt;='a' & amp; & C & lt;='z'));
  • Related