What is pure virtual function? Or what is abstract class?
No Answer is Posted For this Question
Be the First to Post Answer
What is the role of C++ shorthand's?
What is std :: endl?
What is the purpose of decltype?
What are special characters c++?
Explain calling an object's member function(declared virtual)from its constructor?
Difference between const char* p and char const* p?
Why c++ is so important?
How can you quickly find the number of elements stored in a dynamic array?
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?
What is helper in c++?
When is the last time you coded in C/C++? What is the most lines of original C/C++ code you have personally written in one project? How confident are you in your ability to write C or C++ without a reference?
Differentiate between an array and a list?