1.

What is the return type of log()

Answer»

urn type of log() is floatExplanation:log() function in CIt is ONE of the Math Functions used in C/C++/Java programmingThe log() function in C/C++ programming language will accept single PARAMETER and then returns a value of data type float i.e. natural logarithm (base = e) of a given number, where e represents the exponential number.C PROGRAM#INCLUDE #include int main() {    double num = 5.6, result;    result = log(num);    printf("log(%.1F) = %.2f", num, result);    return 0; }Outputlog(5.6) = 1.72



Discussion

No Comment Found