Quick actions

cmd+k|ctrl+k

Navigation

Languages

Логические значения

Snippet info

Language

C

Visibility

public

Author

blackcoffee

Created

2018-06-14T14:41:54Z

Updated

2018-06-14T23:09:24Z

#include <stdio.h>

int main()
{
    int yes = 1, no = 0;
    
    printf("AND (no && no): %d \n", no && no);
    printf("AND (yes && no): %d \n", yes && no);
    printf("AND (yes && yes): %d \n", yes && yes);
    printf("OR (no || no): %d \n", no || no);
    printf("OR (yes || no): %d \n", yes || no);
    printf("OR (yes || yes): %d \n", yes || yes);
    printf("NOT (yes !yes): %d %d\n", yes, !yes);
    printf("NOT (no !no): %d %d\n", no, !no);
    return 0;
}
INFO