Explain the difference between c & c++?
No Answer is Posted For this Question
Be the First to Post Answer
What does extern mean in a function declaration in c++?
What are the different types of polymorphism?
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 std namespace in c++?
What do you mean by internal linking and external linking in c++?
What is auto type c++?
What is the difference between static global and global ?
What happens if an exception is throws from an object's constructor and from object's destructor?
You want to link a c++ program to c functions. How would you do it?
Why is null pointer used?
If I is an integer variable, which is faster ++i or i++?
class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list