Discussion
Which keyword is used to prevent any changes in the variable within a C program?
Answer: C
Correct answer: const
const tells the compiler the object is not to be modified through that name, and an attempt to assign to it is diagnosed. volatile is the opposite kind of promise - that the object may change by means the compiler cannot see - and mutable and immutable are not C keywords at all.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development