Write a recursive program to calculate factorial in c++.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is doubly linked list in c++?

0 Answers  


How the programmer of a class should decide whether to declare member function or a friend function?

0 Answers  


How does list r; differs from list r();?

0 Answers  


What is size of a object of following class? class Foo { public: void foo(){} }

2 Answers   CA,


When should I use unitbuf flag?

0 Answers  






Explain what are single and multiple inheritances in c++?

0 Answers  


What c++ is used for?

0 Answers  


template<class T, class X> class Obj { T my_t; X my_x; public: Obj(T t, X x) : my_t(t), my_x(x) { } }; Referring to the sample code above, which one of the following is a valid conversion operator for the type T? a) T operator T () { return my_t; } b) T operator(T) const { return my_t; } c) operator(T) { return my_t; } d) T operator T (const Obj &obj) { return obj.my_t; } e) operator T () const { return my_t; }

1 Answers   Quark,


What are destructors?

0 Answers  


Explain rethrowing exceptions with an example?

0 Answers  


What are static and dynamic type checking?

0 Answers  


Explain the properties and principles of oop.

0 Answers  


Categories