Write a c++ code that will calculate the roots of a quadratic equation a2+ bx+c=0 Hint: d = sqrt (b2-4ac), and the roots are: x1 = (€“b + d)/2a and x2 = (€“b €“ d)/2a (use sqrt function from cmath.h )?


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

Post New Answer

More C++ General Interview Questions

Explain how to initialize a const data member.

0 Answers  


Define pointers?

0 Answers  


Explain the use of vtable.

0 Answers  


How do you invoke a base member function from a derived class in which you’ve overridden that function?

0 Answers  


Describe the process of creation and destruction of a derived class object?

0 Answers  






What is Namespace?

5 Answers   HCL, Samsung,


Can a function take variable length arguments, if yes, how?

0 Answers  


Explain deep copy?

0 Answers  


What is runtime errors c++?

0 Answers  


What is input operator in c++?

0 Answers  


Explain Text Manipulation Routines?

0 Answers  


Is c++ vector dynamic?

0 Answers  


Categories