In the statement scanf("%d", &kilometer);, kilometer is a ?.
In the statement scanf("%d", &kilometer);, kilometer is a ?.
Explanation
In the statement scanf("%d", &kilometer);, kilometer is considered a variable because:
- Declaration:
Before this statement, kilometer must have been declared as a variable
- Address of Operator:
The & operator in &kilometer is the address-of operator.
It provides the memory address of the variable kilometer to the scanf function.
- Variable Usage:
Variables are used to store data that can be modified during program execution.