? :,Conditional Expression or ternary operator, same program in simple manner
C Programming Language Operators and Enums in C Language (Article) Operators and Enums in C Language (Program)
809Program:
#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.