What is time h in c++?
No Answer is Posted For this Question
Be the First to Post Answer
Define pre-condition and post-condition to a member function in c++?
What is pointer to array in c++?
Is c++ platform dependent?
Have you used MSVC? What do you think of it?
Can we declare a base-class destructor as virtual?
Difference between static global and global?
16 Answers Microsoft, Symphony, Wipro,
Which is not a valid keyword a) public b) protected c) guarded
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.
this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include<iostream.h> int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout<<x<<":"<<y; x=x+y; y=x-y; x=x-y; *a=x; *b=y; cout<<x<<":"<<y; cout<<&a<<endl; cout<<&b<<endl; }
What is a class definition?
Is nan a c++?
Why is main an int?