Constants(Engineering > Computer Science And Engineering > C++ Language ) Questions and Answers
Explanation:-
Answer: Option C. -> literals literals
Explanation:-
Answer: Option D. -> all of the mentioned Because these are the types used to declare variables and so these can be declared as constants.
Explanation:-
Answer: Option A. -> 12.566 In this program, we are finding the area of the circle by using concern formula.
Explanation:-
Answer: Option C. -> Error We cannot modify a constant integer value.
Explanation:-
Answer: Option C. -> both a and b The const will declare with a specific type values and #define is used to declare user definied constants.
Explanation:-
Answer: Option D. -> They end with a semicolon They end with a semicolon
Explanation:-
Answer: Option A. -> The first one refers to a variable whose identifier is x and the second one refers to the character constant x The first one refers to a variable whose identifier is x and the second one refers to the character constant x
Explanation:-
Answer: Option A. -> L prefix It can turn this as wide character instead of narrow characters.
Explanation:-
Answer: Option C. -> Declares a constant a whose value will be 100 Because the const is used to declare non-changable values only.