How is c++ used in the real world?
No Answer is Posted For this Question
Be the First to Post Answer
Describe the setting up of my member functions to avoid overriding by the derived class?
Describe about storage allocation and scope of global, extern, static, local and register variables?
What does namespace mean in c++?
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?
Is there a c++ certification?
Explain the different access specifiers for the class member in c++.
Is c++ a float?
Why would you make a destructor virtual?
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable
What can I use instead of namespace std?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?