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

What are pointers used for c++?

0 Answers  


Explain how to initialize a const data member.

0 Answers  


When is the destructor called?

0 Answers  


Explain mutable storage class specifier.

0 Answers  


what is Member Functions in Classes?

0 Answers  






What gives the current position of the put pointer?

0 Answers  


int *p = NULL; printf("%1d",p) ; what will be the output of this above code?

3 Answers   Microsoft,


Which sort does c++ use?

0 Answers  


What are the various access specifiers in c++?

0 Answers  


Who created c++?

0 Answers  


What is a responder chain?

0 Answers  


You have to take 2 arrays of length 10. Input the values of array 1 from the user. Then copy the values of array 1 to array 2 in ascending order For example if user enters 9, 5, 6, 8, 1, 0, 2, 7, 4, 3 then copy the smallest element i.e. 0 first followed by 1, 2 and so

1 Answers  


Categories