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 < 3.0; L++)
    printf("Hey...\n");
    }
    1. Hey...
    2. Hey...
      Hey...
    3. Hey...
      Hey...
      Hey...
    4. Compilation Error
    5. None of these
Correct Option: C

Hey...
Hey...
Hey...



Your comments will be displayed only after manual approval.