The option that is necessary to compile a C program having math functions is _____________

Đạt Michio

New member
The option that is necessary to compile a C program having math functions is _____________
A. -lm
B. -ln
C. -lp
D. -lq
 
Answer: a
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().
 

Tìm kiếm

Back
Top