A

Admin • 833.24K Points
Coach

Q. Which of the following is the correct ways to set a value 3.14 in a variable pi such that it cannot be modified?

  • (A) float pi = 3.14F;
  • (B) #define pi 3.14F;
  • (C) const float pi = 3.14F;
  • (D) const float pi; pi = 3.14F;
  • Correct Answer - Option(C)
  • Views: 25
  • Filed under category C# (C Sharp)
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.