sorozco2787 sorozco2787
  • 04-09-2020
  • Computers and Technology
contestada

Write a declaration for floating-point variable lastVal that’s to retain its value between calls to the function in which it’s defined.

Respuesta :

codiepienagoya codiepienagoya
  • 04-09-2020

Answer:

The following are the variable declaration to this question:

static float lastVal;

Explanation:

In the question, it is already defined that a method is defined and inside the method a "lastVal" a float variable is declared that uses the static keyword, which means throughout the program its value can't be changed, and throughout the program, it's one copy is generated, and Inside the method, its declaration does not use such a variable, it only works locally.

Answer Link

Otras preguntas

PLEASE SOMEONE HELP I CANT FIGURE IT OUT PLEASE ALL MY FRIENDS DONT KNOW EITHER PLEASEEEEE
aljur is running down the sidewalk is suddenly stopped what force made other to stop from running​
The second Great awakening was a time period in which people became more? A. Religious B. Society C. Prison D. Mental
An __________________ is a professional who designs homes, additions, and major renovations, especially ones involving structural changes. (9 letters)
When air moves into the lungs, oxygen O is converted into carbon monoxide O diffuses across the membranes of the alveoli and enters the blood O diffuses across
What is the area of the figure?​
''The rays that seem to emanate from a virtual image do not in fact emanate from the image'' . Explain the statement
Please need help is for today
145/250 = ?? Giving brainliest
plss help i’ll give brainliest thank you!