Which statement best describes the effect of declaring a variable within a C++ function using the storage class static?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which statement best describes the effect of declaring a variable within a C++ function using the storage class static?
Which statement best describes the effect of declaring a variable within a C++ function using the storage class static? Select one: O A static variable is accessible to all functions. The keyword static is a hint to the compiler that the variable changes rarely. O A static variable can be assigned a value only once. O A static variable retains its value between function calls.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!