C Programming Constant Variables

Which of the following is TRUE for a variable defined with the keyword const and initialized to a value in C language?

مندرجہ ذیل میں سے کون سا متغیر کے لئے صحیح ہے جو مطلوبہ الفاظ کے ساتھ بیان کیا گیا ہے اور سی زبان میں کسی قدر سے شروع کیا گیا ہے؟
Answer: Cannot be changed within the scope of the variable during execution of the program
Explanation

A variable declared with the const keyword in C becomes read-only and its value cannot be modified after initialization.

Attempting to change a const variable will result in a compile-time error.

This question appeared in Past Papers (5 times)
ETEA 25 Years Past Papers Subject Wise (Solved) (2 times)
KPK Teacher Past Papers SST PST CT TT PET (2 times)
This question appeared in Subjects (1 times)

Install this app on your device for quick access right from your home screen.