Write a program to demonstrate the results obtained by using the increment operators along-with logical operators on operands.

C Programming Language Operators and Enums in C Language (Article) Operators and Enums in C Language (Program)

684

Program:

/*
 Program:  Write a program to demonstrate the results obtained by using
  the increment operators along-with logical operators on operands. 
  
 Author: www.atnyla.com  
 
*/ 

#include "stdio.h"  
int main()
{
int i=0, j=1;
printf("\n %d", i++ && ++j);
printf("\n %d %d", i,j);
return 0;
} 

Output:

 0
 1 1Press any key to continue . . .

Explanation:

None

This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.