Explain the isa and hasa class relationships.


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

Post New Answer

More C++ General Interview Questions

Can a new be used in place of old mallocq? If yes, why?

0 Answers  


What are proxy objects in c++?

0 Answers  


Do vectors start at 0 c++?

0 Answers  


What are the conditions that have to be met for a condition to be an invariant of the class?

1 Answers  


What is a wchar_t in c++?

0 Answers  






How Virtual functions call up is maintained?

2 Answers  


How do you declare A pointer to a function which receives nothing and returns nothing

0 Answers  


What are the difference between reference variables and pointers in C++?

1 Answers  


Can we overload operator in c++?

0 Answers  


How does c++ structure differ from c++ class?

0 Answers  


sir there is some problem with nokia5130c-2,when we are trying to upload movies from net then there is a error occurred"FORMAT NOT SUPPORTED" bt its all ready in 3gp format.please tell me what i do now?

2 Answers   Nokia,


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  


Categories