What C++ libraries are you proficient with?
What kind of jobs can I get with c++?
Define vptr.
What do you understand by pure virtual function? Write about its use?
What is a .h file c++?
Why can’t you call invariants() as the first line of your constructor?
What are virtual functions and what is its use?
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?
In a function declaration, what does extern mean?
If there are 1 to 100 Numbers in array of 101 elements. Which is the easy way to find repeated number?
What are the stages in the development cycle?
Using a smart pointer can we iterate through a container?
How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.