Vidyalelo
C# Programming · Q9

Functions and Methods in C Sharp

Programming · C# Programming · question 9

Q9

What is the correct way to call a method named CalculateArea with parameters width and height in C#?

A.
CalculateArea(width, height);
B.
CalculateArea(int width, int height);
Answer
C.
CalculateArea(10, 20);
D.
int result = CalculateArea(width, height);

Answer: Option B

Solution

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