πŸ“Š C#
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;
πŸ’¬ Discuss
βœ… Correct Answer: (C) const float pi = 3.14F;

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
278
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
83%
Success Rate