- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

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

1. float pi = 3.14F;

2.#define pi 3.14F;

3.const float pi = 3.14F;

4.const float pi; pi = 3.14F;

Posted Date:-2021-02-25 10:24:19


More MCQS Questions and answers

Search