85. Predict the output or error(s) of the following c code

1
2
3
4
5
6
7
 main()
{
	int i =0;j=0;
	if(i && j++)
		printf("%d..%d",i++,j);
	printf("%d..%d,i,j);
}

Click here to view the answer

7 Responses to “85. Predict the output or error(s) of the following c code”

  1. Jyotirmaya Ranbirsingh

    sorry sir,
    it is an error in 3rd line.
    int i=0;j=0;

    Reply
  2. There is an error in 3rd and 6th line.
    in 3rd line J will be undeclared, because after i is initialized you have put semicolon(;).
    in 7th line Double Quotes( ” ) is missing in printf statement.

    Reply

Leave a Reply