3 questions in the discription below
1. Consider the following syntax of a program.
int i, j = 26;
int *pi, *pj = &j;
*pj = j + 5;
i = *pj + 5;
pi = pj;
*pi = i + j;
Solve the problem by finding and explaining the following:
(1) &i
(2) &j
(3) pi
(4) pj
(5) *pi
(6) *pj
(7) i
(8) pi
(9) *(pi-1)
(10) (*pi+2)
(11) (pi+2)
(12)
2. Write a C program using a pointer for keying six integers by the user. The six values are stored in an array using a pointer. Then print the elements of the array on the screen.
3. Modify the solution of exercise 2 using a pointer to make the C program to print the elements of the array in reverse order.
11 years ago
20
Purchase the answer to view it

- pointer_assignment.docx
Purchase the answer to view it

- pointer-assignment.rar
- CORE FUNCTIONS OF PUBLIC HEALTH
- Human Resource work due tonight midnight!!!
- Econ 430 Week 4 Questions
- Econ
- i want u to correct what did my professor marked in my papers and write what did you understood from the story ( which is my essay ) in another paper want it to be done in the next 6-7 hours
- Why do firms purchase other corporations
- Journal
- OPS Fin 571 Week 1 Assignment 100% Score
- Problem 18-2A_Jorge Company_Breakeven Analysis
- Business Law Class