? :,Conditional Expression or ternary operator, same program in simple manner
C Programming Language / Operators and Enums in C Language
1077Program:
#include"stdio.h" int main() { int num; printf("Enter the Number : "); scanf("%d",&num); (num%2==0)?printf("Even \n"):printf("Odd \n"); }
Output:
Enter the Number : 45 Odd Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.
# C Tutorials
# JAVA Tutorials
# HTML Tutorials
# Computer Fundamental
# Data Structure
# DBMS Tutorials
SQL
# C# Language
# R Language
# PHP
# Python
# Vue JS