Vidyalelo
Data Structure · Q759

Miscellaneous on Data Structures

Programming · Data Structure · question 759

Q759

Find the output of the following code. #include #include using namespace std; void distance(float x, float y, float a, float b, float c) float d = fabs((a * x + b * y + c)) / (sqrt(a * a + b * b)); cout<<d; return; int main() float x = -2; float y = -3; float a = 5; float b = -2; float c = - 4; distance(x, y, a, b, c); return 0;

A.
2.8
B.
1.8
C.
1.4
Answer
D.
2.4

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board