What Will Be The Output Of The Following C Codep Pre Langcsharp #372

What will be the output of the following C# code?</p> <pre><code class="language-csharp" line="1"> class Program { static void Main(string[] args) { Console.WriteLine( vol(10)); Console.WriteLine( vol(2.5f, 5)); Console.WriteLine( vol( 5l, 4, 5)); Console.ReadLine(); } static int vol(int x) { return(x * x * x); } static float vol(float r, int h) { return(3.14f * r * r * h); } static long vol(long l, int b, int h) { return(l * b * h); } } </code></pre>

Online Quiz This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Object Oriented Concepts - Method Overloading - Quiz No.1.


Similar question(s) are as followings:



Online Quizzes of gs108 CSharp

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background