Home » C++ Programming » Constants/Literals » Question
  1. Regarding the following statement which of the statements is true?
    const int num = 20;
    1. Constructs an integer type variable with an as identifier and 20 as the value
    2. Declares a variable num with 20 as its initial value
    3. Declares a construction num with 20 as its initial value
    4. Declares a constant num whose value will be 20
    5. None of these
Correct Option: D

Because the const is used to declare non-changeable values only.



Your comments will be displayed only after manual approval.