Which of the following is evaluated first:
a) &&
b) ||
c) !
What can I safely assume about the initial values of variables which are not explicitly initialized?
Explain how to initialize a const data member.
Do class method definitions?
How does throwing and catching exceptions differ from using setjmp and longjmp?
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?
Write a note about the virtual member function?
What is the outcome of cout< a) 16 b) 17 c) 16.5
Explain what is polymorphism in c++?
What are the weaknesses of C++?
How delete [] is different from delete?
What is &x in c++?
Do inline functions improve performance?