Home » C Programming » Loops » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    while ()
    printf("Executed In while loop ");
    printf("Executed After loop\n");
    }
    1. Executed After loop
    2. Compilation Error
    3. Infinite loop
    4. Executed In while loop
    5. None of these
Correct Option: B

Compilation Error

main.c: In function ‘main’:
main.c:4:16: error: expected expression before ‘)’ token
while ()



Your comments will be displayed only after manual approval.