Ternary Operator

Ternary Operator : Sample Program Part 2

The video explains the method to use ternary operator in C program. What is important here is, programmer should not forget that conditional expression written using ternary operator returns the value.

Ternary operator is very handy operator to make the code consice in many situation not only in C but C++ and Java as well.

Access this framework with lot more stuff like C language MCQ, viva and interview preparation, Glossary, Solved Programs of C language etc. please register for discount coupon

cenglishcppengcmarathi

Introduction to ternary operators

Ternary Operators – Introduction

C language has got 3 different categories of operators viz. unary, binary and ternary. Here is the video to explain introduction to ternary operator in C language.

The use of ternary operator has to be recognized not only in C but C++ as well ahead.

Access this framework with lot more stuff like C language MCQ, viva and interview preparation, Glossary, Solved Programs of C language etc. please register for Discount Coupon

cenglishcppengcmarathi

Leap Year Program Using Logical Operator Part 2

Leap year Program using logical operators – Part 2

The part 1 shows how we were wrong to put the logic wrongly. Here is the program with correct code

What is important in this code is importance of brackets besides logical AND and logical OR operators.

Access this framework with lot more stuff like C language MCQ, viva and interview preparation, Glossary, Solved Programs of C language etc.

cenglishcppengcmarathi

Leap Year Program using logical operators Part 1

Leap year program using logical operators – Part 1

We have been encountering Leap year since our school days. So how C can abstain from taking same example to teach basic concepts of decision control structures in it…? See the first part of sample program…

It is not the leap year which is just divisible by 4, as used to teach in school days…its more than that…

Access this framework with lot more stuff like C language MCQ, viva and interview preparation, Glossary, Solved Programs of C language etc.

udemy_c_marathi

Logical NOT (!) operator in C

Logical ! (NOT) operator in C

“माझ तुझ्यावर प्रेम नाही असं नाही…!” काय अर्थ आहे हो या वाक्याचाheart

समजायला सोपा पण वापरायला अवघड असा हा logical operator. पण अवघड म्हणजे syntax अवघड नाही तर कोणत्या situation ला नेमका त्याचा वापर करायचा ती ओळखणे अवघड. पहा आम्ही logical NOT operator कसा समजावून सांगीतलाय ते…

Unlike other 2 logical operators i.e. Logical && (AND) and Logical || (OR), this is unary operator. It turns true to false and false to true…!

Access this framework with lot more stuff like C language MCQ, viva and interview preparation, Glossary, Solved Programs of C language etc. please register for Discount Coupon

cenglishcppengcmarathi