In a C++ structure, which of the following statements tells the compiler to allocate memory for an instance of the structure?
- struct { ... };
- typedef struct { ... } StructName;
- StructName var;
- #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
ورچوئل میموری میں میموری کے وسائل کن کے درمیان منظم اور مختص کیے جاتے ہیں؟
- Printers
- Processes
- Keyboards
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
وی پی این کا بنیادی مقصد کیا ہے؟
- To provide privacy and secure connections over networks
- To delete computer files
- To increase RAM
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
ای میل ایڈریس کا ڈومین والا حصہ عام طور پر کس چیز کی نشاندہی کرتا ہے؟
- The email password
- The organization or mail service domain
- The user's phone number
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
سرچ انجن کا بنیادی مقصد کیا ہے؟
- To create documents
- To search for information and websites
- To design presentations
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
نیٹ ورک کارڈ کے منفرد ہارڈویئر ایڈریس کو کیا کہتے ہیں؟
- IP Address
- MAC Address
- Email Address
- None of these