What operators can you overload in c++?
No Answer is Posted For this Question
Be the First to Post Answer
What are proxy objects in c++?
Explain this pointer?
Should the member functions which are made public in the base class be hidden?
What is an inclusion guard?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
When one must use recursion function? Mention what happens when recursion functions are declared inline?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
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 are the advantages of using a pointer?
Do class declarations end with a semicolon?
Explain the advantages of using friend classes.
Write a program that read 2o numbers in and array and output the second largest number. Can anybody help??