Question: a) Write a code that will update a variable entered by the user by multiplying it by 10 through a user-defined function in upward communication.
a)
Write a code that will update a variable entered by the user by multiplying it by 10 through a user-defined function in upward communication. The result will be displayed by main.
(note: add your comments for explanation)
b)
Given the following Array (A):
| 2 |
| 4 |
| 8 |
| 6 |
| 10 |
| 12 |
| 15 |
Let int *P= (A+3).
What is the value of the following?
- *P:
- *P+2:
- P[-1]:
- *(P+3):
- *A:
- *(A+2):
- *(A)+8:
- P[0]:
- *P+3:
- *(P-2):
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
