Top

Discussion

Which of the following statements are correct about the below program?

#include
int main()
{
    int i = 0;
    i++;
    if(i <= 5)
    {
        printf("IndiaBIX\n");
        exit(0);
        main();
    }
    return 0;
}

 

  • A.The program prints 'IndiaBIX' 5 times
  • B.The program prints 'IndiaBIX' one time
  • C.The call to main() after exit() doesn't materialize.
  • D.The compiler reports an error since main() cannot call itself.

Answer: B

No answer description available for this question.
 

No comment is present. Be the first to comment.
Loading…

Post your comment