Find The Output Of The Following Codep Pre Langc #1213

Find the output of the following code.</p> <pre><code class="language-c"> #include<math.h> #include<iostream> 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; } </code></pre>

Online Quiz This multiple choice question (MCQ) is related to the book/course gs gs122 Data Communication and Computer Network. It can also be found in gs gs122 Computational Geometry - Line Point Distance - Quiz No.2.


Similar question(s) are as followings:



Online Quizzes of gs122 Data Communication and Computer Network

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background