How can you differentiate between inheritance and implementation in c++?
No Answer is Posted For this Question
Be the First to Post Answer
What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
Define linked lists with the help of an example.
List the advantages of inheritance.
Can union be self referenced?
1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?
How can I improve my c++ skills?
What are vtable and vptr?
What is const pointer and const reference?
Write a c++ code that will calculate the roots of a quadratic equation a2+ bx+c=0 Hint: d = sqrt (b2-4ac), and the roots are: x1 = (€“b + d)/2a and x2 = (€“b €“ d)/2a (use sqrt function from cmath.h )?
What is main function in c++ with example?
What is anonymous object in c++?
What are the different operators in C++?