Can member data be public?
No Answer is Posted For this Question
Be the First to Post Answer
Explain some examples of operator overloading?
What is public, protected, private in c++?
What is a tree in c++?
How can I disable the "echo" feature?
Explain how to initialize a const data member.
plz send me National informatics center paper pattern
What is buffer and example?
Friend functions can access private and protected members of a class.
What are shallow and deep copy?
How static variables and local variablesare similar and dissimilar?
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 a container class? What are the types of container classes?