Home » C Programming » Loops » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int k = 0;
    for (k++; k == 1; k = 2)
    printf("First...\n");
    printf("Second... \n");
    }
    1. Compilation Error
    2. First...
    3. First...
      Second...
    4. Second...
    5. None of these
Correct Option: C

First...
Second...



Your comments will be displayed only after manual approval.