How to create C library functions
Not what you're looking for?
Write a library containing functions to compute the surface area and volume of a sphere. For a sphere of radius r, these values can be calculated using:
Surface Area = 4 Pi r squared (4 x Pie x r to the second power).
Volume = 4 Pi r cubed/3
Write a driver program to test your library.
Purchase this Solution
Solution Summary
In this solution you will learn how to create C library function with the example of creating a library of functions and a driver program to compute the surface area and volume of a sphere.
Solution Preview
First compile the library file
gcc -c sphere.c
this will ...
Purchase this Solution
Free BrainMass Quizzes
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
Basic Networking Questions
This quiz consists of some basic networking questions.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.