Why isn't sizeof for a struct equal to the sum of sizeof of each member?
What is design pattern?
What is a string example?
What is format for defining a structure?
Can we overload operator in c++?
What is the difference between static link library and dynamic link library?
How a pointer differs from a reference?
what are the types of Member Functions?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
class X { public: int x; static void f(int z); }; void X::f(int y) {x=y;} What is the error in the sample code above? a) The class X does not have any protected members. b) The static member function f() accesses the non-static z. c) The static member function f() accesses the non-static x. d) The member function f() must return a value. e) The class X does not have any private members.
what is the use of Namespace in c++.
How do you test your code?
Can we get the value of ios format flags?