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?

  1. *P:
  2. *P+2:
  3. P[-1]:
  4. *(P+3):
  5. *A:
  6. *(A+2):
  7. *(A)+8:
  8. P[0]:
  9. *P+3:
  10. *(P-2):

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!