You are on page 1of 1

C:\Users\baghdad\source\repos\Project6\Project6\Source.

c 1
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
int main()
{
bool x = true;

//Simple if ... else statement (in one line):

The condition ? condition is true : condition is false;

(!x == false) ? printf("Case 1") : printf("%d", x);


_______
|Same as|
-------

if (The condition)
condition is true
else
condition is false

You might also like