Ask Question
27 September, 19:17

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

+1
Answers (1)
  1. 27 September, 22:16
    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?
Find 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 and Technology 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