Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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! image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

69 Needs assessment and analysis.

Answered: 1 week ago