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
1 2 3 4 5 6 7 8 9 10 |
#include <iostream> using namespace std; int main () { int num= 3; int cube; cube= num*num*num; cout <<"The cube is: " << cube << endl; return 0; } |
