In C++, using const keyword we can declare
2025
In C++, using const keyword we can declare
Answer: A. "I promise not to change this value" — In C++, the const keyword declares variables that cannot be modified after initialization. It ensures data integrity by preventing accidental changes to the…
- A.
"I promise not to change this value"
- B.
"I promise to change this value"
- C.
"I promise to double this value"
- D.
"I promise to exchange this value with other value"
Attempted by 203 students.
Show answer & explanation
Correct answer: A
In C++, the const keyword declares variables that cannot be modified after initialization. It ensures data integrity by preventing accidental changes to the value during program execution.
Explore the full course: Mppsc Assistant Professor Computer Science Paper 2
Loading lesson…