What is static in c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

what kind of projects are suitable for c and c++

0 Answers  


What are the different types of comments allowed in c++?

0 Answers  


What is difference between class and structure in c++?

0 Answers  


How a pointer differs from a reference?

0 Answers  


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

3 Answers   Quark,






What is abstraction in c++ with example?

0 Answers  


What is a unnitialised pointer?

0 Answers  


Please explain class & object in c++?

0 Answers  


How do you compile the source code with your compiler?

0 Answers  


What is a container class? What are the types of container classes?

1 Answers  


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?

5 Answers  


What is a concrete class?

1 Answers  


Categories