Write a program to find the Fibonacci series recursively.
No Answer is Posted For this Question
Be the First to Post Answer
Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); a) 10 b) 11 c) 1
differance between copy & clon
Can we use resume in error handling i.e. in the catch block
Difference between shift left and shift right?
Differentiate between an array and a list?
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
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; }
what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?
when can we use virtual destructor?
7 Answers HCL, HP, Virage Logic,
Discuss the possibilities related to the termination of a program before entering the mainq method?
How does work in c++?