Ask Question
15 August, 01:00

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

+3
Answers (1)
  1. 15 August, 03:47
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers