I\'m trying to write a code that has a lot of comparison
Write a program in “QUANT.C” which “quantifies” numbers. Read an integer “x” and test it, pro
(a>1000) evaluates to either 1 [true] or 0 [false].
(a>1000)
Compile and you will get the error:
test_15.c:12: error: case label does not reduce to an integer constant
This means, you have to use an integer constant value for the case labels. An If-else if-else loop should work just fine for this case.
integer constant
case
If-else if-else