Precedence and Associativity of Operators

  Рет қаралды 357,642

Neso Academy

Neso Academy

Күн бұрын

Пікірлер: 447
@sdk28
@sdk28 3 жыл бұрын
Relational > Equality operator: -> a c -> (a c) -> ((a c) (Associativity left-right) -> ((10 30) -> ((1)) == (1) -> 1 (true) True block will execute and TRUE will be printed
@FireUpBITSPILANI
@FireUpBITSPILANI Жыл бұрын
thanks bhai
@jsmphompho8052
@jsmphompho8052 Жыл бұрын
@@FireUpBITSPILANI thank you very much
@tayyab.sheikh
@tayyab.sheikh 11 ай бұрын
I also did the same but in my mind!
@hello_pi
@hello_pi 4 жыл бұрын
Sir i am a cse student.... C is the 1st language for a cse student... I never forget you in my life
@purushothamchembeti8606
@purushothamchembeti8606 6 жыл бұрын
ans: True if(ac) given now have same precedence and their associativity is from left to right. initially ac also gives so now 1==1 which is true. == has low precedence compared to relational operators like >,>=,
@awsomeindia1295
@awsomeindia1295 5 жыл бұрын
How does ac also....plz reply I really need to know!!!!!!!!!!!!
@vishaliravichandran1314
@vishaliravichandran1314 5 жыл бұрын
@@awsomeindia1295 a
@awsomeindia1295
@awsomeindia1295 5 жыл бұрын
@@vishaliravichandran1314 thank u so much for explaining this😄😄
@rudraenterprises9005
@rudraenterprises9005 4 жыл бұрын
​@@awsomeindia1295 sun if some thing is true it return 1
@adhitya946
@adhitya946 4 жыл бұрын
In if condition it is true == true right??
@rahilumar3002
@rahilumar3002 6 жыл бұрын
Serving people is serving humanity....nice job luv it
@dynxmit3official920
@dynxmit3official920 4 жыл бұрын
Serving people = serving God .
@harshithmadala1844
@harshithmadala1844 3 жыл бұрын
@@dynxmit3official920 Yay!
@harmanaulakh7529
@harmanaulakh7529 2 жыл бұрын
@@dynxmit3official920 serving people != serving god
@Mytechielife
@Mytechielife 6 жыл бұрын
As relational operator has higher precedence a c turns to 1. Therefore 1==1. Hence true will be printed because if block will get executed.
@Prakhar_Choubey
@Prakhar_Choubey 4 жыл бұрын
This guy is going straight to haven 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
@kamilmusic9929
@kamilmusic9929 4 жыл бұрын
you r rit
@shakthisri8409
@shakthisri8409 4 жыл бұрын
Yeah!✨
@lol-bo7ro
@lol-bo7ro 3 жыл бұрын
Yes heaven
@adarshvishwakarma3799
@adarshvishwakarma3799 3 жыл бұрын
We dont go to ravenholm Fire symbolises hell
@ashish5563
@ashish5563 3 жыл бұрын
Bruh he is alive & saving people why do you want to kill him now 😂 or atleast why speak of his death.
@ChintanDhokai
@ChintanDhokai 5 жыл бұрын
a).True if(ac) given Now have the same precedence and their associativity is from left to right. Initially, ac also gives so now 1==1 which is true. == has low precedence compared to logical operators like >,>=,
@nagashayanreddy7237
@nagashayanreddy7237 4 жыл бұрын
Answer is True. Seeing all the videos from East Africa , planning to appear for GATE in 2021. I am getting confidence by listening to your lectures. Thank you for your extraordinary work. :)
@kamilmusic9929
@kamilmusic9929 4 жыл бұрын
gat me asy question kab aty hen...gat me gk, genral math etc ata zyda
@nagashayanreddy7237
@nagashayanreddy7237 4 жыл бұрын
@@kamilmusic9929 ????
@sanyampandey3895
@sanyampandey3895 2 жыл бұрын
@@nagashayanreddy7237 sir gate me programming aati h ?
@yashaswikulshreshtha1588
@yashaswikulshreshtha1588 2 жыл бұрын
@@nagashayanreddy7237 bro if you're indian then what're you doing in east africa?
@1minwithtech495
@1minwithtech495 2 жыл бұрын
Did you appear for gate bro?
@sidans4325
@sidans4325 2 жыл бұрын
It is the best channel to learn programming , i have watched many other channels , but i was not satisfied , but today I saw this channel and watched few videos and i am satisfied, now I have started to understand everything, thanks a lot
@renukadeviamalapurapu5662
@renukadeviamalapurapu5662 3 ай бұрын
Sir, I am an avg student of cse 😢. I watched ur videos one day before exam the difference between ur channel and other channels is this channel provides deep concept , examples and questions for students. Thank you soo much sir.
@adi54113
@adi54113 6 жыл бұрын
Assignment answer is: true(as 1030 is also true and both cases are compared with equality operator so it is true.)
@hemalakshmi9044
@hemalakshmi9044 3 жыл бұрын
a=10 , b=20 , c=30 , d=40 ; ( a c) Explanation : (10 30) Here first ...10
@maheshtech3241
@maheshtech3241 2 жыл бұрын
Thanks for answering...it helped me to understand ❤️🤝
@sulthanamalick9308
@sulthanamalick9308 5 жыл бұрын
Sir please compelete the C programming series it will be useful for our placements....please sir. Your video are really good.Thank you so much sir..
@rubitadas9382
@rubitadas9382 4 жыл бұрын
you are great sir (: the way you are clear all concepts is awesome please upload more computer science subjects so that we people will helpful.
@crypto_key_unlocked
@crypto_key_unlocked 3 жыл бұрын
Thanks!
@rikkalarakeshreddy6466
@rikkalarakeshreddy6466 4 жыл бұрын
very nice channel for learning each concept and logics in C programming. #include #define x printf("THANK U SO MUCH NESO ACADEMY") int main() { x; return 0; }
@compangit1524
@compangit1524 Жыл бұрын
Comments for myself: Associativity is order of evaluation when expressions have the same precedence, could be left-to-right or vice versa. Postfix increment/decrement has greater precendence than prefix. Associativity of postfix operator is from left to right, while prefix is from right to left. Only the assignment, conditional, and unary operators have an associativity of right to left. Associativity only works of we have more than ONE operators of same precedence. If only one, the behavior is undefined and output is compiler dependent. For the assignment, the output is TRUE
@nforme7826
@nforme7826 4 жыл бұрын
a30] which is true ac True==true So, output is true😊
@sasmitasahoo572
@sasmitasahoo572 3 жыл бұрын
Is it correct ??????
@vallipravallikaalluri
@vallipravallikaalluri 6 жыл бұрын
Tq so much i gone theough many websites but this is the 1 which fastly understand and went into my mind 😊😊
@7Strigiformes
@7Strigiformes 5 жыл бұрын
Thanks a lot sir for these types of great videos...
@rohitrout6450
@rohitrout6450 4 жыл бұрын
Luv it..❤your content are really very easy to understand and that question u provide at the end...is a bliss..💓💓keep working like that
@Atharhashmisir
@Atharhashmisir 5 жыл бұрын
Thankyou very much. I have started C programming lectures in Hindi. you are helping me a lot.
@suryas1616
@suryas1616 2 жыл бұрын
(ac) presedence:2 == Presidence:3 Answer: true
@ka7126
@ka7126 3 жыл бұрын
Thank you so much, bro, you explain this so well; I'm set for success in my class moving forward
@AshishKumar-uw9xp
@AshishKumar-uw9xp 2 жыл бұрын
Hello sir , I don't know u ll see my comment or not but u r god for the students who have eager to learn c language .
@namita6577
@namita6577 5 жыл бұрын
Ans will be true because having same precedence but due to left to right associativity . Here, ac also results 1 and then == will execute which prints true.
@varunsamrutwar1966
@varunsamrutwar1966 3 жыл бұрын
the ans is true , explanation :- if(ac) { cout
@chakradharthota1100
@chakradharthota1100 3 жыл бұрын
Thank u bro or explanation
@mohamedkhawaga8067
@mohamedkhawaga8067 3 жыл бұрын
as per ac a belongs to so precednce applies (ac) in this case we have only one operator == so there is no need to apply associativity
@krutarthpatel6537
@krutarthpatel6537 3 жыл бұрын
Neso is best 👍
@APstudent-y6s
@APstudent-y6s 9 ай бұрын
16:10 and the answer comes out to be True thanks Neso❤
@sushmanthavala7813
@sushmanthavala7813 3 жыл бұрын
You are the god for many students sir love you ❤️
@shubhammahajan6696
@shubhammahajan6696 6 жыл бұрын
if u work like this so we'll no need of rbr sir paid lecture
@fun2shh899
@fun2shh899 4 жыл бұрын
true bhai
@rishabhchakraborty2628
@rishabhchakraborty2628 4 жыл бұрын
Exactly, his course is not worth in terms of depth. He just makes everything memorise.
@mrunmaidahare8477
@mrunmaidahare8477 3 жыл бұрын
are these lectures better than rbr sir paid lecture? plz tell
@natnaellegesse1881
@natnaellegesse1881 3 жыл бұрын
(2+3)*5 =25 it is correct and it is called distributive property of multiplication over addition, 5*2+5*3=25 ✔️
@sukhbeersingh5811
@sukhbeersingh5811 3 жыл бұрын
The output of the homework problem is TRUE.👍
@Xardas_
@Xardas_ 2 жыл бұрын
Since the
@AbdElrahmanAmirMohamed
@AbdElrahmanAmirMohamed 3 жыл бұрын
i can't know how can i thank you great content ..... thank you very much 💙💙💙💙💙💙
@vikramsingh-jb1xt
@vikramsingh-jb1xt 6 жыл бұрын
Don't know, because (a c) is also true and return non zero. And finally if(non zero == non zero) sometimes equal or not equal. Therefore I can't predict the answer all times. So it may be compiler dependent.
@fuzailmohamed8619
@fuzailmohamed8619 6 жыл бұрын
No it is not the case, when a given condition becomes true it returns 1,when it is false it returns 0, here 1==1 true is printed.
@prashant1206
@prashant1206 6 жыл бұрын
but in relational operator(==) non zero value is taken as true so, true(any non zero value)== true , so result is true..
@accessdenied9393
@accessdenied9393 3 жыл бұрын
int main(void) { int a=10, b=20, c=30, d=40; int expr = (a c); printf("%s", expr ? "true" : "false"); return 0; } In this example "true" get printed out. Because, "" operators take precedence over "==" operator, so both "" evaluated first then "==" operator: (10 30) Both (10 30) return true, which it is represented by 1 (or any non-zero), so the expression expanded like that: (1 == 1) Now because of (1 == 1) returns true (non-zero), "true" get printed, otherwise "false" keyword would have been printed.
@lets___explore
@lets___explore 5 жыл бұрын
Ans is true....i understand the concept very well☺..thakiieeww soo mch...
@samamostafa2299
@samamostafa2299 4 жыл бұрын
1. we have a condition expression --> (a c) 2. Relational precedence is higher than equality precedence therefore, . 'b' belong to '' operator ---> (d > c), which return TRUE . according to Associativity order Left to Right: (a C) 3. finally Equality will be evaluated (1 == 1), therefore the if construct will return TRUE
@brotherinterest6912
@brotherinterest6912 2 жыл бұрын
so what happen in the last question is that (ac). so there are 2 relational operator and 1 equality operator or u can say (a relational operator b equality operator d relational operator c). so relationall operator has higher precedence and it goes from left to right then (1030), 1030 that s also true (1) then 1==1 true == true that s also true, so TRUE
@princeyaduvanshi9519
@princeyaduvanshi9519 2 жыл бұрын
Very well understood everything. Thanks you sir 🤗🤗
@hello_pi
@hello_pi 4 жыл бұрын
You are the real hero sir........ 🙏🙏🙏🙏🙏
@maneeshachandel8493
@maneeshachandel8493 4 жыл бұрын
Thank you so much sir...you defined it with..minute details
@shubhammahajan6696
@shubhammahajan6696 6 жыл бұрын
one video in 2 day means syllabus finish before gate 2019 we can expect with you thanks
@zeezoscode6954
@zeezoscode6954 10 ай бұрын
The answer for the question is True. Thanks for the great explanation 😍😍
@apnakaamkaro2644
@apnakaamkaro2644 5 жыл бұрын
Thankyou For these Lectures Sir :)
@saraiahd
@saraiahd 11 ай бұрын
if(ac) in this expression left to right associativity is there a30 now 1==40 returns false means 0 now 0>30 returns true means 1 if(1) means true so TRUE will be the answer
@awsomeindia1295
@awsomeindia1295 5 жыл бұрын
Thank you so so so so so much sir....really helpful and detailed video
@sanketkumar29
@sanketkumar29 6 жыл бұрын
Sir plz make videos on cmos basics and its gate implementation.🙏🙏 Your videos are helping me alot thank you so much🙏🙏😊
@sahasrababy_
@sahasrababy_ 4 жыл бұрын
Answer is True. Because ,d>c is true that is 1 and a
@udittiwari8409
@udittiwari8409 4 жыл бұрын
this your video is best and is this is fully complete series for gate sir plz tell i am following your series
@realgamerz5575
@realgamerz5575 2 жыл бұрын
home works answer is true thank u so much to give such a great content free of cost
@MohitK96
@MohitK96 6 жыл бұрын
everyone underestimates precedence and associativity without knowing that they are the most important topics...
@waverache8296
@waverache8296 5 жыл бұрын
Right
@tawseeftaher4446
@tawseeftaher4446 4 жыл бұрын
mohit,vai... i can't memotize this associativity & precedence table. Please help me, if possible
@hello_pi
@hello_pi 4 жыл бұрын
@@tawseeftaher4446 practice bro... Do practice
@qwertyuiopasdfghjkl4211
@qwertyuiopasdfghjkl4211 5 жыл бұрын
Output is true, because relation operater will return only true or false, here will perform because it is left to right associative both are returning true and both == same.
@nandinichaudhari4513
@nandinichaudhari4513 2 жыл бұрын
Very nice explanation, my all doubts get clear.
@deepakbhardwaj3141
@deepakbhardwaj3141 6 жыл бұрын
U r awesome Sir doing a great job....
@sohamshinde1258
@sohamshinde1258 4 жыл бұрын
I just dont understand how the brains of the people who have disliked the vedio work, really I don't just get it. May be undertanding them is more complicated than C language.
@hanivarsitha2505
@hanivarsitha2505 3 жыл бұрын
Superb explanation 👍
@bhargavchowdary45
@bhargavchowdary45 4 жыл бұрын
ans=true; #include int main() { int a=10,b=20,c=30,d=40; if (a c) { printf("true"); } else { printf("false"); } return 0; }
@kishanchaurasia2909
@kishanchaurasia2909 4 жыл бұрын
Sir I have a doubt. Could you explain the reason for such behaviour. #include int main() { int a=10; int b= ++a + a++; printf("%d ",b); return 0; } Output : 23 But expected answer is 22 because first postfix will be evaluated then prefix and sum and at last assignment b= 12+10 Sir please explain this.
@nitishaagrawal8629
@nitishaagrawal8629 6 жыл бұрын
Sir ,Plz upload more videos on loops,arrays n all the topics of C language, U'r videos are helping me a lotttttt bcozz..Plz..
@mauryaashish1865
@mauryaashish1865 3 жыл бұрын
You are insane man!! 🔥🔥🔥
@deepeshsunuwar1086
@deepeshsunuwar1086 4 жыл бұрын
the answer is TRUE. BECAUSE the relational operators has more precedence than equality operators, so (ac), here same precedence so associativity is from left to right, hence both returns true which means 1==1 and it is also true so the final O/P is; T R U E.....................................
@swathik3491
@swathik3491 5 жыл бұрын
ac gives true and true = = true so its print True
@andlurimunireddy4622
@andlurimunireddy4622 4 жыл бұрын
Ans is true.because in relational operators priority is ,=,==,=! . so according to this priority ans is considered as true
@khushiverma894
@khushiverma894 4 жыл бұрын
At 11:52, in 3rd statement there are 2 operators of same precedence i.e. () nd consist higher precedence than + then associativity should be left to right and hence fun1() should be called first then why it is unpredictable...I don't know if it's silly bt I didn't get it.....plz explain
@SandhyaSingh-ms6br
@SandhyaSingh-ms6br 4 жыл бұрын
See that statement very carefully, there are only two operators, () and +. There are two occurences of () but overall there are only two operators to work with, i.e, () and + Associativity comes into picture when there are two or more than two operators of SAME PRECEDENCE. By two ore more operators, it simply means two are more different operators of same precedence. Please make a note of this that two or more *different* operators but of same precedence, then associativity will decide which will be evaluated first. Do you get it now? And it's not silly, actually first look pe ye misconception hona is okay, ho jata hai
@khushiverma894
@khushiverma894 4 жыл бұрын
@@SandhyaSingh-ms6br yeah got it...thanks😊
@AbstractZeroData
@AbstractZeroData 9 ай бұрын
if we consider () paranthesis as an operator then there is more than one operator in the expression fun1() + fun2()
@varunsharma2876
@varunsharma2876 4 жыл бұрын
This the best channel👌👌👌
@Steeve.smoker
@Steeve.smoker Жыл бұрын
Sir.u pin correct answers.and I enjoy ur series ❤❤
@nishithbaravkar7549
@nishithbaravkar7549 3 жыл бұрын
thanks for this wonderful video
@criminalcoder6307
@criminalcoder6307 3 жыл бұрын
True.. As relational operators have higher precedence than equality operator.
@suryatomar1997
@suryatomar1997 3 жыл бұрын
sir in expression (2+3)*5 ,we must have to solve bracket first then the multiplication should be done, isn't it?
@Tara_Sutar
@Tara_Sutar Жыл бұрын
@ 14:28 example, Why is Neso Academy bring printed ? 1) variable "a " is an type. 2) The function is returning only 1 not Neso. and why does it return Neso ?
@382_alamin8
@382_alamin8 2 жыл бұрын
So much attractive content thanks for it. Ans. True
@neerajnegi1447
@neerajnegi1447 4 жыл бұрын
In the first example if fun is variable with value assigned to it as 0 then if the expression is like this " int var = fun++" then why the value of var becomes 0 as ++ has higher precedence than = so var should have the value of 1.
@nimisharawat9949
@nimisharawat9949 4 жыл бұрын
Just apply BODMAS or BODMASModulus in calculations.
@1minwithtech495
@1minwithtech495 2 жыл бұрын
No it won't be true
@payalkumari3825
@payalkumari3825 2 жыл бұрын
Explain various operators with its precedence in c. Explain various operators in c. Sir this two questions are same or different
@adriancardosa2448
@adriancardosa2448 4 жыл бұрын
Advance happy 1m subs ♥️ from Philippines
@nesoacademy
@nesoacademy 4 жыл бұрын
Thank you :)
@adriancardosa2448
@adriancardosa2448 4 жыл бұрын
I just solved my assignment sir it really helps a lot promise
@SsSs-nr2nt
@SsSs-nr2nt 4 жыл бұрын
good initiative
@njaliShinde
@njaliShinde 4 жыл бұрын
If condition is true True==True that is 1==1 o/p:True
@josuegisber8150
@josuegisber8150 3 жыл бұрын
Answer is: TRUE. Why? Because relational operator ( < , >, >=,
@unknown-kn4uf
@unknown-kn4uf 5 жыл бұрын
@3:48 associativity of * is more than / you only told. Then why here you are saying that associativity of / is more than *
@AbbaJi-gm4vc
@AbbaJi-gm4vc 5 жыл бұрын
See again
@adeebalam2392
@adeebalam2392 3 жыл бұрын
@@AbbaJi-gm4vc can you please explain I have the same doubt
@mahalingpreethi1021
@mahalingpreethi1021 3 жыл бұрын
Ans:True ac is true which results 1; but 1==1 is True; so ans is True
@Official-tk3nc
@Official-tk3nc 5 жыл бұрын
Guys they are providing everything for free and some idots dislikes these types of videos. I think they need mental treatment
@manishsuthar597
@manishsuthar597 4 жыл бұрын
They probably would be jealous teachers😟😕
@nihalpandey5675
@nihalpandey5675 4 жыл бұрын
Bro you have just commented same thing in almost each lectures I have gone through. By the way those who r disliking may be having more knowledge but if you have more knowledge what the hell r u doing here😂
@sspsuman
@sspsuman 4 жыл бұрын
() has Left to Right associativity. So why not first fun1() then fun2() will execute always ??
@mr.knight8967
@mr.knight8967 3 жыл бұрын
No man, When both have same precedence, Compiler work left to right so fun1() will execute first.
@duggirambabu7792
@duggirambabu7792 2 жыл бұрын
@@mr.knight8967 int a, b, c=3; a = b = c; Have same precedence. *It goes from Right to Left,* not Left to Right.
@ashishkhari5565
@ashishkhari5565 Жыл бұрын
True is the answer of the homework problem................
@abd8114
@abd8114 3 жыл бұрын
What will be the value of x if. Int x = 5 > 8 ? 10 : 1 != 2
@Tony-cw6om
@Tony-cw6om 3 жыл бұрын
I think 30 would be assigned to x
@duggirambabu7792
@duggirambabu7792 2 жыл бұрын
x = 5 > 8 ? 10 : 1 != 2 < 5 ? 20 : 30 x = 0 ? 10 : 1 != 1 ? 20 : 30 x = 0 ? 10 : 0 ? 20 : 30 x = 0 ? 10 : 30 x = 30
@smrutiranjanmohanty21
@smrutiranjanmohanty21 5 жыл бұрын
Excellent
@Foodfind217
@Foodfind217 Жыл бұрын
Answer of the question of this lession: True
@nandinipogula9726
@nandinipogula9726 4 жыл бұрын
Sir there is no video on type conversion techniques 🙁 Plz post that video sir I've been struck over there Wana comp it N also types of type conversion Implicit n explicit
@shraddhaaasne3915
@shraddhaaasne3915 3 жыл бұрын
sir please make more videos on basic c programming.
@rishabdas1092
@rishabdas1092 4 жыл бұрын
True as all the parenthesis have same associativity...
@diojoestar4766
@diojoestar4766 5 жыл бұрын
but we should be able to have a consistent out put for a compiler. example codeblock's GCC compiler should be consistent for every system right? that being said we can make a table with compiler and their behavior.
@saulaxel
@saulaxel 5 жыл бұрын
But the compiler can still change its behavior from version one version to another.
@manojbasam6732
@manojbasam6732 5 жыл бұрын
Great job sir
@noone0978
@noone0978 Жыл бұрын
true will be answer btw sir, do we have to learn the table?
@universalstarcpu9522
@universalstarcpu9522 3 жыл бұрын
@4:10 Associativity is from left to right is crct , but in the table of associativity and precedence in the video of arithmetic operators 1st u have written multiplication, division and modulus But at the time mentioned above u did 1st division how is it possible As in the table from gng left to right 1st there is multiplication in table , we should perform multiplication naa 1st🤔 Table is also available after 5 sec of above mentioned time. can anyone clear this ?
@duggirambabu7792
@duggirambabu7792 2 жыл бұрын
**,/,%* have same precedence. Which one does do first? Now it depends on associativity. **,/,%* have same associativity (left to right). So we have to do from left to right. Ex1: 10 / 2 * 5 = 5 * 5 = 25 Ex2: 10 * 2 / 5 = 20 / 5 = 4
@kishanchaurasia2909
@kishanchaurasia2909 4 жыл бұрын
Sir I have a doubt. int a= 10; int b=10; int c= a+ b+a++; Output : 30 But if we follow precedence then first a++ will be solved and then sum will be solved and answer would be 31 c= 11+10+10 Sir please explain this.
@badxcode
@badxcode 4 жыл бұрын
are you still here? according to postfix increment which was mentioned before, first the value of 'a' will be use in the equation then it will increment by '1'. so, here value of a = 10 is used in the equation first then after completing the equation and and returning value 30 to 'c', a will increment by 1. a will not increment first and be '11' then get used, it will be used first as '10' then after completing the equation a will increment by 1. print the value of a after the equation of c if that's correct or not. Hope you understood what I wanted to say ..!
@kishanchaurasia2909
@kishanchaurasia2909 4 жыл бұрын
@@badxcode thanks
@kishanchaurasia2909
@kishanchaurasia2909 4 жыл бұрын
@@badxcode please explain this one more int a=10; int c=a+a++; Output is 21 Now if I follow what you said then it must 20 only please explain.
@badxcode
@badxcode 4 жыл бұрын
@@kishanchaurasia2909 quite confusing. According to Neso, rule of postfix in equation is that it will use in equation first then it will increment by 1. (sorry, I talked about completing the equation. I was wrong. Completing the equation comes in light in terms of prefix increment/decrement in equation) You can see the details in video-24 in this playlist, in case you din saw. And with that explanation c=a+a++; seems right. Now about that previous question you asked I guess there's a trick behind that question which I, as a beginner won't be able to find out. I'm just as confused as you are right now. Anyway, if you find the answer, then please don't forget to share it here else I'll crack my head over and over. I hope sir see this problem and reply soon. Or anyone else who figured it out reply here. I guess I'm gonna post this problem on different programming groups in facebook to find out. Anyway, Thanks. You mentioned quite a tricky problem here.
@Tony-cw6om
@Tony-cw6om 4 жыл бұрын
@@kishanchaurasia2909 here in the expression c=a+a++ ...we have two operators one is '+' and another is '++'( postfix increment operator) .a postfix increment operator has higher precedence than the unary plus operator so.. in this expression, C=a+a++ -firstly a++(postfix operator) will be evaluated, in this 1st 10 is assigned to a and then incremented ..as it is incremented the value of a changes to 11 -hence 11 is substituted in place of a which is the left operand so.. 11 is added to 10 hence the output will be 21 I.e , c=11+10 c=21 I hope you understand!!🙃🙃
@RAHULTMNT100
@RAHULTMNT100 5 жыл бұрын
great video!
@gulamishaq5863
@gulamishaq5863 5 жыл бұрын
Please make a vadio on web based using html css php My SQL
Operators in C (Solved Problem 1)
5:54
Neso Academy
Рет қаралды 173 М.
Increment and Decrement Operators in C (Part 1)
10:55
Neso Academy
Рет қаралды 416 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 16 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 169 МЛН
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 9 МЛН
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 4,8 МЛН
Recursion in C
11:12
Neso Academy
Рет қаралды 952 М.
Precedence and Associativity of Arithmetic Operators
9:05
Neso Academy
Рет қаралды 22 М.
C_21 Operators Precedence and Associativity in C | C programming Tutorials
11:29
Jenny's Lectures CS IT
Рет қаралды 321 М.
Exceeding The Valid Range of Data Types
7:47
Neso Academy
Рет қаралды 343 М.
Conditional Operator in C
5:41
Neso Academy
Рет қаралды 268 М.
C Programming (Rapid Fire Quiz-1)
5:52
Neso Academy
Рет қаралды 506 М.
Logical Operators in C
12:09
Neso Academy
Рет қаралды 440 М.
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 16 МЛН