Computer Science, asked by aayush3201, 1 year ago

Which of the following is not a valid integer constant of the type int?
a) 3750
b) 32800
c) -32767
d) 0

Answers

Answered by mohit9233
20
b is correct answer be integer constant support -32768 to 32767
Answered by mindfulmaisel
7

32800 is not a valid integer constant of the type int.

Answer: Option (b)

Explanation:

There are 6 C constants. They are integer constants, octal-hexadecimal constants, real constants, character constants, backslash constants, string constants. Certain rules should be followed in constructing C constants. They are as follows,

  • The integer const should have at least 1 digit.
  • The value can be either negative or positive.
  • No commas or blanks should be used.
  • No decimal point should be used.
  • The allowable range is -32768 to 32767.
  • By default, the sign of the digit will be positive.
Similar questions