Home » C Programming » Loops » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    double L = 0;
    for (L = 0.0; L < 5.0; L++);
    printf("%f\n", L);
    }
    1. 1.000000
    2. 2.000000
    3. 3.000000
    4. 5.000000
    5. None of these
Correct Option: D

5.000000



Your comments will be displayed only after manual approval.