C++ Programming Language Syntax

In a C++ structure, which of the following statements tells the compiler to allocate memory for an instance of the structure?

Answer: StructName var;
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.

This question appeared in Past Papers (2 times)
CTSP, Central Testing Service Past Papers (1 times)
Rescue 1122 Past Papers, Syllabus (1 times)
This question appeared in Subjects (1 times)

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