Conditional operator is alternative to simple if-else statement
Syntax:-
expr1 ? expr2 : expr3
Execution:-
expr1 is always evaluated, if results is true than expr2 is executed otherwise expr3 is executed.
Example:-
Program to find given number as even or odd.
Previous Code:-
else if statement
List Code:-
C Codes
Next Code:-
Increment operator
C Programs
List of c Programs
else if statement
List Code:-
C Codes
Next Code:-
Increment operator
C Programs
List of c Programs
Conditional Operator in C is a powerful Operator which can be used to implement if-then-else type of logic. This operator is also known as ternary operator in C.
ReplyDeleteAmazing Article, Really useful information to all So, I hope you will share more information to be check and share here.
ReplyDeletePygame Tutorial
Pygame Download
Pygame Install
Matplotlib Python
Matplotlib Tutorial
Matplotlib install
PouchDB Tutorial
What is PouchDB
PouchDB Installation
pouchdb server