Question: 4. Using cin, Allocating Memory, and Writing Assignment Statements cin, Memory Allocation, and Assignment Statements Show the variable name and value of each statement 1.int
4.Using cin, Allocating Memory, and Writing Assignment Statements
| cin, Memory Allocation, and Assignment Statements | Show the variable name and value of each statement |
| 1.int a, b = 9; a = b; |
|
| 2.int d = 2, x = 3, y = 1; y + 4 = d - x; |
|
| 3.short number = 10; number = 0; |
|
| 4.short number = 0; number = 10; number = number + 5; |
|
| 5.double value = 12.0; value = 10.0; value = value + .5; |
|
| 6.const int b = 9; |
|
| 7.double x = -14.5, y = 22.5; int d = 3; y = d - x + y; |
|
| 8.double ans = 4; |
|
| 9.int n; cin >> n; //Assume the user enters 3.24. |
|
| 10.char a; cin >> a; Assume the user enters b. |
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
