Correct Way To Define A Value 628 In A Variable 8216pi8217 #16
Correct way to define a value 6.28 in a variable ‘pi’ where value cannot be modified?
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Data Types, Variables and Operators - Floating and Decimal Data Types - Quiz No.1.
Correct way to define a value 6.28 in a variable ‘pi’ where value cannot be modified?
#define pi 6.28F
pi = 6.28F
const float pi = 6.28F
const float pi pi = 6.28F