What is static in c++?
No Answer is Posted For this Question
Be the First to Post Answer
what kind of projects are suitable for c and c++
What are the different types of comments allowed in c++?
What is difference between class and structure in c++?
How a pointer differs from a reference?
class basex { int x; public: void setx(int y) {x=y;} }; class derived : basex {}; What is the access level for the member function "setx" in the class "derived" above? a) private b) local c) global d) public e) protected
What is abstraction in c++ with example?
What is a unnitialised pointer?
Please explain class & object in c++?
How do you compile the source code with your compiler?
What is a container class? What are the types of container classes?
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 concrete class?