Ternary Operator in C | Tutorial for Beginners in HINDI

Source code for this Tutorial


#include <stdio.h>
#include <stdlib.h>

int main()
{

int age;
printf("Enter your age\n");
scanf("%d",&age);

age >= 18 ? printf("You are adult") : printf("You are minor");

return 0;

}