What do you understand by pure virtual function? Write about its use?
No Answer is Posted For this Question
Be the First to Post Answer
Should you pass exceptions by value or by reference?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
What is the advantage of an external iterator.
You're given an array containing both positive and negative integers and required to find the sub-array with the largest sum (O(N) a la KBL). Write a routine in C for the above.
What is protected inheritance?
Explain linear search.
What is the precedence when there is a global variable and a local variable in the program with the same name?
They will ask u question about single linked list?. Write Code for to insert delete node.
sizeof- is it functioning statically or dynamically?
Which programming language is best to learn first?
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 problem with overriding functions?