Question: C-program. please complete deliverable 3 and 4 please! Pointers and Function Example Pointers are ofte ens are often used to pass may structures, and other

C-program. please complete deliverable 3 and 4 please! C-program. please complete deliverable 3 and 4 please! Pointers and Function Example

Pointers and Function Example Pointers are ofte ens are often used to pass may structures, and other compound data types to functions. Here's a quick example. This example has two functions in and sultByFive(). It is good practice to comment al programs and to comment all functions. In your homework, I expect you to at least, comment all functions and comment the top of all programs. Try out this example. 1. This example demonstrates that pointers can be passed to functions. 2. It was written by Andy Mitofsky../ 3. include 4. double multByFive (double *ptr); 5. 6. 9. 10. int main() { double value -3; double outValue; double *vptr; vptr=kvalue; outValue multByFive(vptr); printf("Value is %t and outValue is Xt ", value, outValue); return 0; ] 12. 13. 14. 15. /*This function multiplies the contents of xptr by five./ 16. double multByFive (double **ptr) 17. { 18. *xptr =5 . *xptr; 19. return *xptr; 20. } Deliverable 3: Explain the Notation Explain lines 4, 9, 10, 18, and 19 in the example above in your own word. Deliverable 4: Linux Directory Structure Match the files with their directory. Hint: some directories aren't used, and some are used more than once. daemon.log A. /etc netconfig B. /media/pi wc C. /dev/block stdio.h D. /usr/bin Thumb drive files E. /var/log gcc F. /usr/include

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!