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…

  1. A.

    "I promise not to change this value"

  2. B.

    "I promise to change this value"

  3. C.

    "I promise to double this value"

  4. 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…