C_17 Operators in C - Part 5 (Logical Operators) | C Programming Tutorials

preview_player
Показать описание
In this lecture we will discuss Logical Operators in C with example and C Program.

*******************************************

Connect & Contact Me:

*********************************************

More Playlists:

#cprogramming #jennyslectures #programming #datatypes #clanguage
Рекомендации по теме
Комментарии
Автор

In the example that's used to explain logical AND, a = 10 and b = 5, so b < a becomes TRUE. But while explaining, it's stated as FALSE, which needs to be corrected.

venkatakrishnareddykarri
Автор

Mam this is my first year in BTech.my cse teacher is not teaching well so I have no worries now because now I am learning from you.Thank you mam

alishettishreechakra
Автор

You're a life saver ma'am.
RESULT 1 : 1
RESULT 2: 0

akuruyajoshua
Автор

With your videos I've passed my first semister, thank you Jenny mam 🎉from ANDHRA

iconboy
Автор

16:34 result_1=a>b && printf ("jenny") || printf("lectures") && printf("jk");
result_2=a>b && printf ("jenny") || printf("lectures") || printf("jk");
OUTPUT: result_1=1
result_2=1
20:22 result 1=1
result 2=1 (both result_1 and result_2 are evaluated in the same program

fatima
Автор

Thank you so much Jenny, i didn't know anything about the precedence, assosciativity, you clarified the increments and decrements perfectly. This is my third day watching your videos.

maryannemuthoni
Автор

i had forgotten the operator precedency concept and in evaluation tests many times made mistakes. Now its clear to me. thanks

MechMonty
Автор

a-- becomes 1 it means true and ++b becomes 7 so it is also true finally true and true is true it means "1"
In second case --a becomes 0 it means false so in logical and if any one condition is false then whole result gets false it means "0"

jyoshnareddy
Автор

logical
int main();
{
int a=4, b=5, result;
result=a>b && printf ("jenny") || printf("lectures") || printf("jk");
printf("%d", result);

result 1=1
result 2-1

maam both the result will be one because it is an OR GATE Used in this case.

chiradeepbhattacharya
Автор

Hai Dear Ma'am,
When Your discussed && Operator b<a Condition True.

dhanrajm
Автор

16:35 result will be true(1)
Output lecturesjk1
16:43 also output is lectures1
Because as log or gets 1st true it will not check another condition

geetageeta
Автор

Ma'am for the Q of combination of logical operators answers of both the Q will be JennylecturesJK1
& For the Q of int a=1, b=6 ....
Result 1 =1 and Result 2 =0

aditiraj
Автор

When you print("Jenny") in Logical operator example.Return type of printf() is 1 thats why result is 1

prajaktakadam
Автор

dear mam thank you will be very less for your videos, praying for all happiness n success to u n to ur family, i m benefited a lot by your videos, you are an excellent teacher

shrur
Автор

"AND" is a king he all ways want 1 rupee from all to say YES.
"OR" is a Begger he satisfies with at least 1 rupee from any one to say YES.
This is how i remember.

neelasatyasai
Автор

You are the best lecturer i have ever seen for programming. Many people knows programming, but they dont know how to teach. but you, i can give you

abdulrahimjalloh
Автор

A beauty can explore the Excellent lecture.

shafizulislam
Автор

Result when && at the end = JK1 and Result with || at the end is also JK1. This is so because Logical && has a positive value at first, then the result is automatically TRUE which is 1, and logical OR (||) already have one and both values as TRUE, so, result is equal to 1

Joycee
Автор

thank you so much mam, every doubt is cleared now regarding operators.

adityagk
Автор

Hi mam
Near 4:58 stated has false
But It's true b<a (5<10)
Just for reference

saitejaraju