Single Choice Not Set

QWhat will be the output of the following program?
#include"stdio.h"
main()
{
int i, j, k, l, m;	
i=-1; j=-1; k=0; l=2;
m = i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m); 
}
 

ID: #1274 Operators and Enums in C Language 739 views
Question Info
#1274Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 0 0 1 3 1
  • B -1 0 1 3 1
  • C Compiler error
  • D Unexpected results
Correct Answer

Explanation

0 0 1 3 1

Share This Question

Challenge a friend or share with your study group.