Ask Question
14 April, 22:48

Given an integer variable drivingAge that has already been declared, write a statement that assigns the value 17 to drivingAge.

+1
Answers (1)
  1. 15 April, 00:33
    0
    The code to this question as follows:

    Code:

    #include / /include header file for using basic function

    int main () / /defining main method

    {

    int drivingAge = 17; / /defining integer variable that assign a value

    printf ("%d/n", drivingAge); //print value.

    return 0;

    }

    Output:

    17

    Explanation:

    In the above C language code, firstly a header file is included this file is used for use basic function. In the next line, the main function is defined, inside the main method, an integer variable "drivingAge" is declared that holds a value that 17 and to print variable value the printf function is used that prints its value.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Given an integer variable drivingAge that has already been declared, write a statement that assigns the value 17 to drivingAge. ...” in 📙 Computers & Technology 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