Question
Why should a C++ base class destructor be virtual when deleting derived objects through base pointers?
More C Programming Questions
- What is the output of the following C code?
- What will the following C code print? int a[5] = {1,3,5,7,9}; int *p = a+2; printf("%d", *p + *(p-1));
- Which of the following is used to declare a list in Python?
- What is the output of the following C++ code? #include using namespace std; int main() { int x = 5; int &ref = x; ref = 10; int ...
- What is a key difference between the malloc() and calloc() functions in C?
- What is the output of the following C code? #include int main() { int i; for (i = 0; i < 3; i++) { printf("%d ", i); } p...
- Which of the following statements is correct for Python lists?
- Which algorithm is used to find the shortest path from a single source in graphs with negative weights?
- What is the output of the following C code? int x = 5; int y = x++ + ++x; printf("%d %d", x, y);
- In mobile computing, which type of network allows devices to connect directly to each other without using a central router or switch?
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)