1.

The option that is necessary to compile a C program having math functions is _____________(a) -lm(b) -ln(c) -lp(d) -lqThis question was addressed to me in an interview for internship.This intriguing question originated from Comment Syntax in division SQL Syntax of MySQL

Answer»

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



Discussion

No Comment Found

Related InterviewSolutions