Submit Search
Upload
Conditional & Cast Operator
•
Download as PPTX, PDF
•
0 likes
•
32 views
J
Jeeban Mishra
Follow
This is my first presentation on conditional operator and cast operator hope u like it.
Read less
Read more
Education
Report
Share
Report
Share
1 of 9
Download now
Recommended
Control Flow Statements
Control Flow Statements
Tarun Sharma
C lecture 3 control statements slideshare
C lecture 3 control statements slideshare
Gagan Deep
175035 cse lab-03
175035 cse lab-03
Mahbubay Rabbani Mim
Conditional Statement in C Language
Conditional Statement in C Language
Shaina Arora
Decision making statements in C programming
Decision making statements in C programming
Rabin BK
Elements of c program....by thanveer danish
Elements of c program....by thanveer danish
Muhammed Thanveer M
Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2
alish sha
11 2. variable-scope rule,-storage_class
11 2. variable-scope rule,-storage_class
웅식 전
Recommended
Control Flow Statements
Control Flow Statements
Tarun Sharma
C lecture 3 control statements slideshare
C lecture 3 control statements slideshare
Gagan Deep
175035 cse lab-03
175035 cse lab-03
Mahbubay Rabbani Mim
Conditional Statement in C Language
Conditional Statement in C Language
Shaina Arora
Decision making statements in C programming
Decision making statements in C programming
Rabin BK
Elements of c program....by thanveer danish
Elements of c program....by thanveer danish
Muhammed Thanveer M
Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2
alish sha
11 2. variable-scope rule,-storage_class
11 2. variable-scope rule,-storage_class
웅식 전
5.program structure
5.program structure
Shankar Gangaju
Decision statements in c language
Decision statements in c language
tanmaymodi4
Control statements in c
Control statements in c
Sathish Narayanan
Structure in programming in c or c++ or c# or java
Structure in programming in c or c++ or c# or java
Samsil Arefin
Operators and expressions in c language
Operators and expressions in c language
tanmaymodi4
Composite types
Composite types
Manjitsing Valvi
C if else
C if else
Ritwik Das
Storage classes in C
Storage classes in C
Self employed
Positive (2)
Positive (2)
Ankit Dubey
C Programming: Control Structure
C Programming: Control Structure
Sokngim Sa
One dimensional operation of Array in C- language
One dimensional operation of Array in C- language
9096308941
Decision making and branching in c programming
Decision making and branching in c programming
Priyansh Thakar
Storage classes
Storage classes
Puneet Rajput
Data Input and Output
Data Input and Output
Sabik T S
C decision making and looping.
C decision making and looping.
Haard Shah
Control structure in c
Control structure in c
baabtra.com - No. 1 supplier of quality freshers
Storage classes in c language
Storage classes in c language
tanmaymodi4
Control and conditional statements
Control and conditional statements
rajshreemuthiah
Storage class in c
Storage class in c
kash95
Storage classes
Storage classes
Shanmughaneethi Velu
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
pboyjonauth
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
Marc Dusseiller Dusjagr
More Related Content
What's hot
5.program structure
5.program structure
Shankar Gangaju
Decision statements in c language
Decision statements in c language
tanmaymodi4
Control statements in c
Control statements in c
Sathish Narayanan
Structure in programming in c or c++ or c# or java
Structure in programming in c or c++ or c# or java
Samsil Arefin
Operators and expressions in c language
Operators and expressions in c language
tanmaymodi4
Composite types
Composite types
Manjitsing Valvi
C if else
C if else
Ritwik Das
Storage classes in C
Storage classes in C
Self employed
Positive (2)
Positive (2)
Ankit Dubey
C Programming: Control Structure
C Programming: Control Structure
Sokngim Sa
One dimensional operation of Array in C- language
One dimensional operation of Array in C- language
9096308941
Decision making and branching in c programming
Decision making and branching in c programming
Priyansh Thakar
Storage classes
Storage classes
Puneet Rajput
Data Input and Output
Data Input and Output
Sabik T S
C decision making and looping.
C decision making and looping.
Haard Shah
Control structure in c
Control structure in c
baabtra.com - No. 1 supplier of quality freshers
Storage classes in c language
Storage classes in c language
tanmaymodi4
Control and conditional statements
Control and conditional statements
rajshreemuthiah
Storage class in c
Storage class in c
kash95
Storage classes
Storage classes
Shanmughaneethi Velu
What's hot
(20)
5.program structure
5.program structure
Decision statements in c language
Decision statements in c language
Control statements in c
Control statements in c
Structure in programming in c or c++ or c# or java
Structure in programming in c or c++ or c# or java
Operators and expressions in c language
Operators and expressions in c language
Composite types
Composite types
C if else
C if else
Storage classes in C
Storage classes in C
Positive (2)
Positive (2)
C Programming: Control Structure
C Programming: Control Structure
One dimensional operation of Array in C- language
One dimensional operation of Array in C- language
Decision making and branching in c programming
Decision making and branching in c programming
Storage classes
Storage classes
Data Input and Output
Data Input and Output
C decision making and looping.
C decision making and looping.
Control structure in c
Control structure in c
Storage classes in c language
Storage classes in c language
Control and conditional statements
Control and conditional statements
Storage class in c
Storage class in c
Storage classes
Storage classes
Recently uploaded
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
pboyjonauth
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
Marc Dusseiller Dusjagr
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
Dr. Mazin Mohamed alkathiri
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
UnboundStockton
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
VS Mahajan Coaching Centre
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
Virag Sontakke
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
YousafMalik24
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
Celine George
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Sarwono Sutikno, Dr.Eng.,CISA,CISSP,CISM,CSX-F
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
GaneshChakor2
Full Stack Web Development Course for Beginners
Full Stack Web Development Course for Beginners
Sabitha Banu
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
iammrhaywood
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
Virag Sontakke
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Sumit Tiwari
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
pboyjonauth
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
JiesonDelaCerna
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
anshu789521
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
OH TEIK BIN
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
Dr. Mazin Mohamed alkathiri
Recently uploaded
(20)
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
Full Stack Web Development Course for Beginners
Full Stack Web Development Course for Beginners
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
Conditional & Cast Operator
1.
2.
Symbol or a
keyword which performs operation.
3.
Known as ternary
operator Returns one value if condition is true & return other one if false. Syntax: variable_name=(condition)? True_value : false_value;
4.
Example: //conditional #include<stdio.h> void main( ) { int
first,second,smaller; printf("Enter two numbers : "); scanf("%d %d",&first,&second); smaller=(first<second)?first:second; printf(“Smaller one is = %dn”,smaller); }
5.
Output
6.
Used to convert
the value of one type of variable into another type. Syntax- variable=(convert_datatype)current_datatype;
7.
Example: //cast #include<stdio.h> Void main() { int a; char
ch; printf(“Enter a character: ”); scanf(“%c”,&ch); a=(int)ch; printf(“Integer after conversion= %d ”,a); }
8.
Output
Download now