C LAB‎ > ‎(Sem1) Introduction to C‎ > ‎

IF( )

posted Dec 3, 2010, 10:19 AM by Neil Mathew   [ updated Dec 3, 2010, 10:20 AM ]

1
2
3
4
5
6
7
8
9
10
main()
{
 
if(0) // 0 = false
printf(" checks if ==0 , if 0 false, ");
 
if(6) // 6 = non zero = true
printf(" checks if ==0 , if non zero true ");
 
}

OUTPUT:

checks if ==0 , if non zero true 

Comments