Answers for "ternaire in c"

C
0

ternaire in c

/*
	condition ? true : false;
*/
#include <stdio.h>

int main(void)
{
    int a = 1;

    a == 1 ? printf("yes\n") : printf("no\n");
    return 0;
}

shell §> yes
Posted by: Guest on September-29-2021

Code answers related to "C"

Browse Popular Code Answers by Language