What is the difference between a static local variable and an automatic local variable?

What will be an ideal response?


The difference between a static local variable and an automatic local variable is that the static local variable will retain its value after the program control has exited the function. The automatic local variable loses its value when the program control leaves the function. When the function is entered again, the value the static variable previously had is still intact.

Computer Science & Information Technology

You might also like to view...

Describe the four Access macro security settings available in the Trust Center dialog box.

What will be an ideal response?

Computer Science & Information Technology

A programmer must do the following before using an array:

a. declare then reference the array. b. create then declare the array. c. create then reference the array. d. declare then create the array.

Computer Science & Information Technology

When the computer processes the assignment statement, it first performs the calculation that appears on the leftt side of the assignment operator.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

If you position the pointer outside of an image until it changes to a curved arrow and then drag in the direction you want to rotate the image, this is called a free ____________________ rotation.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology