What is the code to print the address of a variable (e.g. wave)?
std::cout «_space;“Address of variable : “ «_space;&wave «_space;“\n”;
What symbol is used to get the address of the variable?
&
What are shared variables?
Shared variables are variables that can be accessed between functions. Shared variables also retain their value while the program continues to run.
What is an address?
An address is where a variable lives (in memory) - each variable has its own address.