15. WRITE A C PROGRAM TO UNDERSTAND LOGICAL NOT ( ! ) OPERATOR

/*C Program to Understand Logical NOT ( ! ) operator*/

#include <stdio.h>
#include<conio.h>
int main(void)
{
printf(" LOgical NOT Operator Result : \n");
printf(" !1 is : %d \n",!1);
printf(" !0 is : %d \n", !0); 
return 0;
}

output

!1 is : 0 
!0 is : 1

Comments