If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first
a) 1
b) 5
c) 3
No Answer is Posted For this Question
Be the First to Post Answer
What is command line arguments in C++? What are its uses? Where we have to use this?
Why Pointers are not used in C++?
What are member functions used in c++?
What are inline functions? What is the syntax for defining an inline function?
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; }
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
Can I make ios apps with c++?
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
What's the "software peter principle”?
What gives the current position of the put pointer?
What is fflush c++?
What is scope resolution operator in c++ with example?