Google News
logo
C# - Quiz(MCQ)
Correct way to define a value 6.28 in a variable a where value cannot be modified ?
A)
pi = 6.28F
B)
#define a 6.28F
C)
const float pi = 6.28F
D)
None of the Above

Correct Answer :   const float pi = 6.28F

Advertisement