What will be the output of the following C code?
#include <stdio.h>
#include <math.h>
int main()
{
int i = 10;
printf("%f\n", log10(i));
return 0;
}
#include <stdio.h>
#include <math.h>
int main()
{
int i = 10;
printf("%f\n", log10(i));
return 0;
}
A. Compile time error
B. 1.000000
C. 2.302585
D. None of the mentioned
Answer: Option B
Join The Discussion