What is the difference between global variables and static varables?
No Answer is Posted For this Question
Be the First to Post Answer
What are the methods of exporting a function from a dll?
Does c++ have arraylist?
What are the benefits of operator overloading?
Can you explicitly call a destructor on a local variable?
What is a flag in c++?
What is c++ good for?
What issue do auto_ptr objects address?
What is size of a empty class?
7 Answers Microsoft, Tata Elxsi, Wipro,
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 c++ and its features?
Can you please explain the difference between static and dynamic binding of functions?
What is c++ library?