Difference between Abstraction and encapsulation in C++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Write about an iterator class?

0 Answers  


When is a template a better solution than a base class?

1 Answers  


Why is c++ a mid-level programming language?

0 Answers  


What do you mean by static variables?

0 Answers  


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?

5 Answers  






Differentiate between declaration and definition in C++?

1 Answers  


What does flush do c++?

0 Answers  


What is the stack?

5 Answers   IBM, ICICI,


What do you mean by translation unit?

0 Answers  


What is near, far and huge pointers? How many bytes are occupied by them?

0 Answers  


What is c++ and its features?

0 Answers  


What is difference between c++ 11 and c++ 14?

0 Answers  


Categories