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:
Verified
Q1: Which of the following statements are correct
Q2: Which of the following is NOT an
Q3: What will be the output of the
Q4: Which of the following is the correct
Q5: Which of the following statements are correct?1.
Q7: Which of the following can be used
Q8: Which of the following statements are correct
Q9: Which of the following is the correct
Q10: Which of the following statements are correct?1.
Q11: Which of the following is the correct
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents