When you write a program that stores a value in a variable, you are using ____ storage.

Question: When you write a program that stores a value in a variable, you are using which kind of storage
(A). temporary
(B). Permanent
(C). Both
(D). None of these
MCQs Answer:
(A). temporary

C++ Program that stores the temporary values in the variables of num and cube


Output

The cube is: 27

Explanation

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.

Example 2

The screenshot is showing the temporary storage of values in variables of X, Y nad temp.

Explanation of Swapping Program in C++ with three variables

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.