Question: When you write a program that stores a value in a variable, you are using which kind of storage
(D). None of these
C++ Program that stores the temporary values in the variables of num and cube
using namespace std;
int main ()
int num= 3;
cout <<"The cube is: " << cube << endl;
The cube is: 27
In this example when the program will execute, then the value of 3 will temporarily load on ram. Similarly, the value of variable cube 27 will also load on the main memory.
The screenshot is showing the temporary storage of values in variables of X, Y nad temp.