Suppose that you are using the C standard math library function squareroot in a
ID: 3818864 • Letter: S
Question
Suppose that you are using the C standard math library function squareroot in a program that you are writing. GIVE ALL OF THE PREPROCESSOR DIRECTIVE(S) that are needed at the top of your source file, in the CORRECT ORDER. Suppose that you are using the C standard math library function squareroot in a program that you are writing, and suppose that the name of your source file is my_math.c (and that therefore the name of your executable will be my_math). GIVE THE COMPLETE MAKEFILE ENTRY that would be associated with this program. (DON'T include the clean entry.)Explanation / Answer
1.
sqrt is part of math library so I will be using
#include <math.h>
2.
all:
gcc -lm -o my_math my_math.c
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.