The option necessary to compile a C program havin math functions is ______________
(a) -lm
(b) -ln
(c) -lp
(d) -lq
(a) -lm
(b) -ln
(c) -lp
(d) -lq
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The correct choice is (a) -lm
Explanation: To compile a program written in the C language, it is compiled by issuing the option ‘-lm’. The examples of some math functions found in ‘math.h’ are floor(), sqrt(), pow(), log().