• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
In a C++ structure, which of the following statements tells the compiler to allocate memory for an instance of the structure?
  1. struct { ... };
  2. typedef struct { ... } StructName;
  3. StructName var;
  4. #include <iostream>
Explanation

 In C++, when you use a statement like StructName var;,

it tells the compiler to allocate memory for an instance of the structure StructName.

Related MCQs

کمپیوٹر میں ہیش فنکشن کا بنیادی مقصد کیا ہے؟
  1. Data integrity verification and fast lookup
  2. Playing audio
  3. Increasing screen brightness
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ایس ایس ڈی میں کس قسم کی میموری استعمال ہوتی ہے؟
  1. Magnetic memory
  2. Flash memory
  3. Optical memory
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ای میل میں "بی سی سی" فیلڈ کا مقصد کیا ہے؟
  1. To add attachments to the email.
  2. To specify the recipient’s email address.
  3. To send a copy of the email to multiple recipients without revealing their email addresses to others.
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

کمپیوٹر سائنس کا بانی کون ہے؟
  1. Augusta Adaming
  2. Allen Turing
  3. Charles Babbage
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

پہلی خاتون کمپیوٹر پروگرامر کون تھیں؟
  1. Ada Lovelace
  2. Grace Hopper
  3. Katherine Johnson
  4. Margaret Hamilton
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com