1.

Which option is necessary to compile a C program havin math functions?(a) -lm(b) -ln(c) -lp(d) -lq

Answer» Right option 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().


Discussion

No Comment Found