What do c++ programmers do?
No Answer is Posted For this Question
Be the First to Post Answer
What is the handle class?
What are enumerations?
How do you initialize a string in c++?
What are c++ redistributables?
What is setw manipulator in c++?
How do we balance an AVL Tree in C++?
write the code that display the format just like 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1
Is c++ an oop?
What are different types of polymorphism supported by C++
What can c++ be used for?
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?
How the virtual functions maintain the call up?