Question: Which of the following are NOT valid C++ casts
A
B
C
D
E
dynamic_cast
B
reinterpret_cast
C
static_cast
D
const_cast
E
void_cast
Note: Not available
typedef char *monthTable[3];Referring to the code above, which of the following choices creates two monthTable arrays and initializes one of the two?
class Person { public: Person(); virtual ~Person(); }; class Student : public Person { public: Student(); ~Student(); }; main() { Person *p = new Student(); delete p; }Why is the keyword "virtual" added before the Person destructor?
template<class T> void Kill(T *& objPtr) { delete objPtr; objPtr = NULL; } class MyClass { }; void Test() { MyClass *ptr = new MyClass(); Kill(ptr); Kill(ptr); }Invoking Test() will cause which of the following?
class Base { } class Derived : public Base { }Which of the following are true?
#include<stdio.h> int main(int argc, char* argv[]) { enum Colors { red, blue, white = 5, yellow, green, pink }; Colors color = green; printf("%d", color); return 0; }What will be the output when the above code is compiled and executed?