Home » C Programming » Loops » Question
  1. Which of the following is the correct output for the program given below ?

    #include <studio.h>
    int main()
    {
    char i = 0;
    for (i<=5 && i>= -1; ++i; i>0)
    printf ("%d\n",i);
    printf ("%\n");
    return 0;
    }
    1. 1 2 3 ..... 126 127 -128 - 127 .... -2 -1
    2. Expression syntax error
    3. No Output
    4. 0 1 2 3 4 5
Correct Option: A

1 2 3 ..... 126 127 -128 - 127 .... -2 -1



Your comments will be displayed only after manual approval.