Q:

What, if any, are the differences between the following definitions

0

What, if any, are the differences between the following definitions

int month = 9, day = 7;
int month = 09, day = 07;

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

int main() {
  int month = 9, day = 7;      // OK
  int month1 = 09, day1 = 07;  // Error: the digit of octal integral literal should in range 0~7

  return 0;
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now