Which statement declares three integers in one line?
Q.Which statement declares three integers in one line?
A) int(a, b, c);
B) int a; b; c;
C) int a b c;
D) int a, b, c;
Correct Answer:
Option D
Detailed Explanation:
D) int a, b, c; is correct. C++ declarations use the data type before the variable name. Integer division drops the fractional part, character codes can be converted to integers, and constants cannot be changed.