What is array give example?
No Answer is Posted For this Question
Be the First to Post Answer
What is c++ course?
Which programming language should I learn first?
Will a catch statement catch a derived exception if it is looking for the base class?
Can we declare destructor as static? Explain?
What is endianness?
What is a string example?
Difference between overloaded functions and overridden functions
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 keyword struct is different from the keyword class in c++?
Differentiate between the message and method in c++?
What is endl?
How does a copy constructor differs from an overloaded assignment operator?