Ask Question
19 February, 16:36

Type a C statement that declares and initializes variable taxRate to the value 0.085. Make sure to include a prefix 0 before typing the. 085

+5
Answers (1)
  1. 19 February, 18:26
    0
    float taxRate = 0.085f

    Explanation:

    Variable initialisation in C (or any other programming language) is a way of declaring variable and assigning some values to the variable declared.

    To initialise a variable in C, the data type, variable name and value are needed.

    The following syntax must be obeyed when initialising a variable:

    Data-type variable-name = value

    Data-type represents which type of value is going to be stored in the variable.

    Variable name, also known as identifier represents valid variable name (name of the allocated memory blocks for the variable).

    Value represents the value or content of the declared variable.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Type a C statement that declares and initializes variable taxRate to the value 0.085. Make sure to include a prefix 0 before typing the. 085 ...” in 📘 Engineering if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers