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

Peter Vegas

4 thoughts on “85. Predict the output or error(s) of the following c code

  1. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest updates on your inbox

Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.

    StudentProjects.in