• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
Which of the following is TRUE for a variable defined with the keyword const and initialized to a value in C language?
مندرجہ ذیل میں سے کون سا متغیر کے لئے صحیح ہے جو مطلوبہ الفاظ کے ساتھ بیان کیا گیا ہے اور سی زبان میں کسی قدر سے شروع کیا گیا ہے؟
  1. Can be overwritten within the scope of the variable
  2. Does not differ from the variable that is declared without const and initialized
  3. Cannot be changed within the scope of the variable during execution of the program
  4. Can be changed within the scope of the variable
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.

Related MCQs

کون سا آپریٹنگ سسٹم ملتے جلتے کاموں کو گروپ بنا کر بیچز کی صورت میں چلاتا ہے؟
  1. Real-time operating system
  2. Batch operating system
  3. Distributed operating system
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

کمپیوٹر کے مدر بورڈ پر سی ایم او ایس بیٹری کا کیا کام ہے؟
  1. To power the processor
  2. To maintain system time and BIOS/UEFI settings
  3. To increase internet speed
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

درج ذیل میں سے کون سی آپٹیکل اسٹوریج ڈیوائس کی مثال ہے؟
  1. SSD
  2. DVD Drive
  3. Hard drive
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

جی این یو آپریٹنگ سسٹم کا منصوبہ کس نے شروع کیا؟
  1. Bill Gates
  2. Steve Jobs
  3. Richard Stallman
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

مندرجہ ذیل میں سے کون سی غیر مستحکم میموری ہے؟
  1. RAM
  2. ROM
  3. Cache
  4. Both A and C
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com