Which one between if-else and switch is more efficient?


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

Post New Answer

More C++ General Interview Questions

What is encapsulation in C++? Give an example.

0 Answers   HAL, Honeywell, Zomato,


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

0 Answers  


Why is it necessary to use a reference in the argument to the copy constructor?

0 Answers  


How is c++ different from java?

0 Answers  


iam a fresher to Qt(GUI a c++ based framework software). i need to develop the basic applications on designer by drag and dropping mechanism...so pls send me the procedure to design applications?

1 Answers  






What is vector pair in c++?

0 Answers  


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.

2 Answers   Quark,


Define pure virtual function?

0 Answers  


How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?

0 Answers  


What are maps in c++?

0 Answers  


What is oops in c++?

0 Answers  


What is problem with overriding functions?

0 Answers  


Categories