In the statement scanf("%d", &kilometer);, kilometer is a?.

  • AFunction
  • BOperator
  • CVariable
  • DConstant
Show answerHide answer

Correct answer C

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 a ddress-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 modifie d during program execution.