Home » C Programming » C-Library-Functions » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    #include <math.h>
    int main()
    {
    int n = 10;
    printf("%f\n", log10(n));
    return 0;
    }
    1. 10
    2. Compilation Error
    3. 2.302585
    4. 1.000000
    5. None of these
Correct Option: D

1.000000



Your comments will be displayed only after manual approval.