C_20 Operators in C - Part 8 | Comma Operator | C Programming Tutorials

  Рет қаралды 198,887

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Күн бұрын

Пікірлер: 357
@sanilshekhawat7967
@sanilshekhawat7967 3 жыл бұрын
Ma'am hats off to ur knowledge, i m ur student from last one year and very glad nd thankful for everything u taught us....thank you so much from the depth of my heart....🙏🏿🙏🏿🙏🏿🙏🏿
@SandeepSingh-xn5by
@SandeepSingh-xn5by 3 жыл бұрын
value of a=10, value of b=2 ;, by following the right shift shortcut mathod
@harshitsatya5291
@harshitsatya5291 3 жыл бұрын
Thanks a lot This is the best videos on operators I have seen ever.
@shacks05
@shacks05 3 жыл бұрын
kindly Request . To Pls Make Videos on Python As soon as possible mam ❤️ . Because we are Addicted to u 🙏☺️
@sivajilaveti7308
@sivajilaveti7308 3 жыл бұрын
👍
@divya_barge2096
@divya_barge2096 2 жыл бұрын
(a++, ++a, a>>2); == 2 because first value will be avoided and last value will be stored in the computer memory.
@apputadhiyal9451
@apputadhiyal9451 2 жыл бұрын
Yeah I also got the same answer😃
@richieabbugamingff498
@richieabbugamingff498 2 жыл бұрын
yess
@divya_barge2096
@divya_barge2096 2 жыл бұрын
@@richieabbugamingff498 same ans?!!🙃
@yakuzaoyabun5640
@yakuzaoyabun5640 2 жыл бұрын
And what about the value of a ? Will it be 2 or 10?
@status_beatz_1
@status_beatz_1 Жыл бұрын
@@yakuzaoyabun5640 2
@nithinreddyannem4535
@nithinreddyannem4535 3 жыл бұрын
Answer is 2 for b=(a++,++a,a>>2)
@shreekarshetti1406
@shreekarshetti1406 3 жыл бұрын
@@0xDEAD-C0DE Ask the same thing in the interview too when encountered a que
@ishfaqahmad3594
@ishfaqahmad3594 Ай бұрын
Let's break down the expression and the code to understand the values of `a` and `b`. ### Code Analysis: ```c int b, a = 2; b = (a++, ++a, a >> 2); printf("%d ", a); printf("%d", b); ``` 1. **Initialization**: ```c int b, a = 2; ``` Here, `a` is initialized to 2, and `b` is declared but not initialized yet. 2. **The comma operator**: The comma operator `(a++, ++a, a >> 2)` evaluates each expression from left to right, but only the **rightmost expression** (`a >> 2`) is the value assigned to `b`. So let's evaluate the comma operator step by step: - **`a++`**: This increments `a` after its current value is used. So, in this case: - `a` is initially 2. - `a++` uses the value 2 but increments `a` to 3. - **`++a`**: This increments `a` before using its value. After `a++`, `a` was already incremented to 3, so now `++a` increments `a` to 4. - **`a >> 2`**: After the previous two operations, `a` is now 4. The expression `a >> 2` means a bitwise right shift of `a` by 2 positions. Shifting 4 (binary `100`) right by 2 positions gives `1` (binary `001`). **So, `b = 1` because `a >> 2` results in 1**. 3. **Final value of `a`**: After the comma expression, `a` is left as `4`. 4. **`printf()` statements**: - `printf("%d ", a);` will print the value of `a`, which is `4`. - `printf("%d", b);` will print the value of `b`, which is `1`. ### Summary: - **The value of `a`** is `4`. - **The value of `b`** is `1`. ### Output: ``` 4 1 ```
@misturaojulari9707
@misturaojulari9707 Жыл бұрын
12:49 a = 2 b = 2 a = 2 because the value of a will also be updated to 2
@kavisingh5509
@kavisingh5509 3 жыл бұрын
Ma'am I like ur video very much the English language you used is very easy and understandale to me mam you are awesome👏✊👍 mam from where you did your graduation? Which books you studied and please also reccomend us book
@Anjali-ek1tj
@Anjali-ek1tj Жыл бұрын
10:02 int a; a = printf ("Jenny"),2,3,4; Ans: Jenny 2 Because initialisation is already done in first step and after printf and comma is used so it doesn't show error
@All_linone
@All_linone Ай бұрын
But it assign the the value 4 thre is two more comma
@SanjanaManupati
@SanjanaManupati Ай бұрын
But why I am getting Jenny as output 4 is not printed in the output 😢
@srvocals1646
@srvocals1646 3 жыл бұрын
11:48 jenny5 (output) since word jenny has five letters ,so the output is jenny5.
@Liam-10
@Liam-10 Жыл бұрын
int a = 8; in binary it means 00001000 And a >> 2 means that we'll eliminate the first 2 bits and then it will be 00000010 = 2 in decimal ✅👌
@grishitha4795
@grishitha4795 4 ай бұрын
answer is 3
@luckybanthia
@luckybanthia 3 жыл бұрын
you have solved my doub't... i'm gathering here and there for the answer but didn't get int a= (2,7,9) o/p = 9....*but finally i got my answer.. thank you mam*
@fuadhamedmohamed4311
@fuadhamedmohamed4311 2 жыл бұрын
b=(a++,++a,a>>2) the Answer will be 2. mam you are good teacher thnks for your healping.
@ishfaqahmad3594
@ishfaqahmad3594 Ай бұрын
Let's break down the expression and the code to understand the values of `a` and `b`. ### Code Analysis: ```c int b, a = 2; b = (a++, ++a, a >> 2); printf("%d ", a); printf("%d", b); ``` 1. **Initialization**: ```c int b, a = 2; ``` Here, `a` is initialized to 2, and `b` is declared but not initialized yet. 2. **The comma operator**: The comma operator `(a++, ++a, a >> 2)` evaluates each expression from left to right, but only the **rightmost expression** (`a >> 2`) is the value assigned to `b`. So let's evaluate the comma operator step by step: - **`a++`**: This increments `a` after its current value is used. So, in this case: - `a` is initially 2. - `a++` uses the value 2 but increments `a` to 3. - **`++a`**: This increments `a` before using its value. After `a++`, `a` was already incremented to 3, so now `++a` increments `a` to 4. - **`a >> 2`**: After the previous two operations, `a` is now 4. The expression `a >> 2` means a bitwise right shift of `a` by 2 positions. Shifting 4 (binary `100`) right by 2 positions gives `1` (binary `001`). **So, `b = 1` because `a >> 2` results in 1**. 3. **Final value of `a`**: After the comma expression, `a` is left as `4`. 4. **`printf()` statements**: - `printf("%d ", a);` will print the value of `a`, which is `4`. - `printf("%d", b);` will print the value of `b`, which is `1`. ### Summary: - **The value of `a`** is `4`. - **The value of `b`** is `1`. ### Output: ``` 4 1 ```
@18fatima15
@18fatima15 8 ай бұрын
10:07 Jenny 12:26 #include int main() { int a=8,b; b=(a++,++a,a>>2); printf("%d %d",a,b); return 0; } output: 10 2
@noone0978
@noone0978 Жыл бұрын
10:05 it will give error 12:25 it will give a=10 and b=2 because b is 2.5 but as we are writing integer, so float value will be neglected
@amanmomin7798
@amanmomin7798 Жыл бұрын
a=2 not 10 if I am wrong then explain me
@Hasini-p6c
@Hasini-p6c 10 ай бұрын
No at 10:05 it prints..... Jenny 4
@Hasini-p6c
@Hasini-p6c 10 ай бұрын
It doesn't give error
@abdulrahimjalloh363
@abdulrahimjalloh363 Жыл бұрын
#include #include int main () { int a; a=printf("Jenny"),2,3; return 0; } //Output is "Jenny"
@srinukanuparthi2500
@srinukanuparthi2500 Жыл бұрын
For a=8 b=(a++,++a,a>>2) b=a++,++a Output is b=2 a=10
@leaderrr_shivam
@leaderrr_shivam Жыл бұрын
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
@vanshikagarg7586
@vanshikagarg7586 Жыл бұрын
b=(a++,++a,a>>2) Output =2
@leaderrr_shivam
@leaderrr_shivam Жыл бұрын
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
@nithiya8418
@nithiya8418 3 жыл бұрын
Mam ur DS playlist really helped me a lot for exam prep... please make a playlist for Computer architecture also mam... the subject sounds so vague pl help mam... 🙏🙂
@tirumalaramanarajuv7473
@tirumalaramanarajuv7473 3 жыл бұрын
Yes mam
@ganesh_nama
@ganesh_nama 2 жыл бұрын
madam thanks i cleared my concept..,post and pre for inc and dec..
@anshikabansal5642
@anshikabansal5642 3 жыл бұрын
Yr teaching style is Awesome mam❤
@markmonn
@markmonn 3 жыл бұрын
The explanations are really good!
@sairampolisetty2059
@sairampolisetty2059 3 жыл бұрын
14:11 output is a=10,b=2
@handekarilingojivarasaikri782
@handekarilingojivarasaikri782 3 жыл бұрын
If we print a value also then Output : Jenny 5 As there are 5 letters are their in word "Jenny"
@instabeauty50M
@instabeauty50M 3 жыл бұрын
Output : Jenny5
@PankajPFilms
@PankajPFilms 3 жыл бұрын
Answer is 2. For b=(a++,++a,a>>2)
@lalitharamachandra6659
@lalitharamachandra6659 11 ай бұрын
Mam I got a=10,b=2 12:27
@maryannemuthoni5388
@maryannemuthoni5388 Жыл бұрын
a = printf("Jenny"), 2,3,4; Answer is Jenny b = (a++, ++a, a>>2); value assigned to b will be a>>2 which in the end is 2, value of a is 10
@varahapadmaja8157
@varahapadmaja8157 9 ай бұрын
Answer is jenny5
@harishbadam7554
@harishbadam7554 18 күн бұрын
Main{ int a=0,b=0; a=(b=75)+9; printf("%d,%d",a,b) } Can you explain above what output we will get
@rehanchoudhury1937
@rehanchoudhury1937 3 жыл бұрын
a,b=2 , as ++ is having more presedence then >> , the number would be 10, in binary 1010 >>2= 10 (i.e 2)
@cricket_addicted_guys
@cricket_addicted_guys 2 жыл бұрын
#include int main() { int a; a=printf("jenny"),2,3; printf("%d",a); return 0; } /*output : jenny5 Mam here I got jenny along with 5 I think we are using format specifier %d and data type int...so it give the length of the string */
@vamsipolamarasetti8003
@vamsipolamarasetti8003 2 жыл бұрын
Bro, for me its coming like "code has no effect "
@preetham36
@preetham36 Жыл бұрын
put bracket for a=(print("jenny),2);
@Thejasree...
@Thejasree... 8 ай бұрын
Yeah,if we don't use printf("%d",a) ,we will get the output as jenny
@khushbuanuragi8697
@khushbuanuragi8697 Жыл бұрын
b=(a++,++a, a>>2) a=10 and b=2
@nuthankumar8454
@nuthankumar8454 Жыл бұрын
hi
@leaderrr_shivam
@leaderrr_shivam Жыл бұрын
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
@rukayatmuhammed3670
@rukayatmuhammed3670 Жыл бұрын
int a = printf("jenny"), 2, 3, 4 Solution: Here, It is an error, but [printf("Jenny")] will still be executed, which results in the output of [jenny5], because the world [Jenny] has 5 characters... So output will be [Jenny5] Thank you ma'am
@makrynub9256
@makrynub9256 Жыл бұрын
where did the 5 came from???
@dianawanguiw3669
@dianawanguiw3669 Жыл бұрын
​@@makrynub9256its the number of character used inside the printf function printf("Jenny")
@ananthu4141
@ananthu4141 Жыл бұрын
​​@@dianawanguiw3669why it will be printed... I think only "jenny" will be printed 😐there's nothing to give the character count.. 😐
@abdulrahimjalloh363
@abdulrahimjalloh363 Жыл бұрын
If i can take you to the moon and stars i should have done that 🙂, thanks mam, you made it easy for us.
@sankalpphadke4938
@sankalpphadke4938 3 жыл бұрын
a=10 b=2 a value doesn't change, b value will be a/2² =10/4 =2
@rohithsai9046
@rohithsai9046 3 жыл бұрын
can you explain in detail please😕
@sankalpphadke4938
@sankalpphadke4938 3 жыл бұрын
@@rohithsai9046 We have a=8, b. Q. b=(a++,++a,a>>2); As per video b will take value of last operant i.e a>>2 but first two operant will evaluate from left to right. First a++. a become 9 Then ++a. a become 10 in a>>2 We use shortcut like If >> operater is used divide (/) value a with given value 2²=4 If these operater square the value of given number). In our case >> this operater is used so b= (10/2²) b= 10/4 b= 2 b gets value 2 because we are using int as our datatype, *If we use float then b value change to 2.5. (We can't use float if we are using bit/shift operators)
@akhilsugaraju3905
@akhilsugaraju3905 2 жыл бұрын
@@sankalpphadke4938 hi sir I agree with answer But can you tell me which has more precedence ++ or >>
@udaysingh6621
@udaysingh6621 2 жыл бұрын
@@akhilsugaraju3905 ++
@kuttu960
@kuttu960 2 жыл бұрын
Ma'am I had a doubt..!??? b=(a++, ++a, a>>2); in this equation b=2 is the answer...!! But the value stored in the A change in each stage. a++ = 9 ++a = 10 a>>2 = 2 So my doubt is the new value stored in the A=2, so I think it couldnt be 10. So the value be B=2 , A=2 Plzz give reply....
@ishfaqahmad3594
@ishfaqahmad3594 Ай бұрын
Let's break down the expression and the code to understand the values of `a` and `b`. ### Code Analysis: ```c int b, a = 2; b = (a++, ++a, a >> 2); printf("%d ", a); printf("%d", b); ``` 1. **Initialization**: ```c int b, a = 2; ``` Here, `a` is initialized to 2, and `b` is declared but not initialized yet. 2. **The comma operator**: The comma operator `(a++, ++a, a >> 2)` evaluates each expression from left to right, but only the **rightmost expression** (`a >> 2`) is the value assigned to `b`. So let's evaluate the comma operator step by step: - **`a++`**: This increments `a` after its current value is used. So, in this case: - `a` is initially 2. - `a++` uses the value 2 but increments `a` to 3. - **`++a`**: This increments `a` before using its value. After `a++`, `a` was already incremented to 3, so now `++a` increments `a` to 4. - **`a >> 2`**: After the previous two operations, `a` is now 4. The expression `a >> 2` means a bitwise right shift of `a` by 2 positions. Shifting 4 (binary `100`) right by 2 positions gives `1` (binary `001`). **So, `b = 1` because `a >> 2` results in 1**. 3. **Final value of `a`**: After the comma expression, `a` is left as `4`. 4. **`printf()` statements**: - `printf("%d ", a);` will print the value of `a`, which is `4`. - `printf("%d", b);` will print the value of `b`, which is `1`. ### Summary: - **The value of `a`** is `4`. - **The value of `b`** is `1`. ### Output: ``` 4 1 ```
@rishabhgupta2364
@rishabhgupta2364 Жыл бұрын
a = printf( "jenny" ),2,3,4; Answer a= 4
@PavaniGummadipudi-ot7kn
@PavaniGummadipudi-ot7kn 7 ай бұрын
Thank you mam for your kind information for c programming tutorials thanks a lot mam
@rathore_shubham02
@rathore_shubham02 Ай бұрын
a = 4 b = 2 Right answer !
@Liam-10
@Liam-10 Жыл бұрын
int a; a = jenny , 2 ,3 ,4; a = jenny; Because without brackets we get the first value
@vasumeduri5103
@vasumeduri5103 2 жыл бұрын
Mam for b=(a++,++a,a>>2); The value of b=2 The value of a=10 Thank you mam
@SN-edits4u
@SN-edits4u Жыл бұрын
No, a also updates it's value as a>>2
@leaderrr_shivam
@leaderrr_shivam Жыл бұрын
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
@Liam-10
@Liam-10 Жыл бұрын
@@leaderrr_shivam For a it will be 10 because it works with each value but for b it will be only 8 because it works only with last value and after shifting right it will become 2 . For a:- int = 8; a++ = 9; ++a = 10; For b:- int a = 8; in binary it means 00001000 And a >> 2 means that we'll eliminate the first 2 bits and then it will be 00000010 = 2 in decimal ✅👌
@zzye553
@zzye553 Жыл бұрын
b = 2 finall result ma'am. Since a++ and ++a will be operated and rejected then the a>>2 will be assigned to be,
@ankittripathi420
@ankittripathi420 3 жыл бұрын
Sbse phle hmne dekha aur seekha
@vinayaksalagar3098
@vinayaksalagar3098 Жыл бұрын
Tq mam have a great job
@abhayrajnegi6847
@abhayrajnegi6847 3 жыл бұрын
Mam please make video on recursion . It will really help in understanding ds
@zubairmalik9614
@zubairmalik9614 3 жыл бұрын
Outstanding ...from pakistan
@devSackey
@devSackey Жыл бұрын
a = 10; b = 2; printf("Thanks jenny");
@leaderrr_shivam
@leaderrr_shivam Жыл бұрын
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
@devSackey
@devSackey Жыл бұрын
@@leaderrr_shivam lets take the question: int a = 8, b; 1.b = (a++, ++a, a>>2) solution; here the comma acts as an operator and its associativity is from left to right: therefore from the question a= 8; a++ is a post increment operator (i.e the original value of a ( which is 8) will be executed and after execution it will increase to 9. ++a is a pre increment operator so the value of a(which is now 9 from post increment) will be increased to 10 during execution; a >> 2 = 10 >> 2; = 2.5 but remember the a is an integer so only the value 2 will be printed, hence a >> 2 = 2; i hope this explanation helps;
@leaderrr_shivam
@leaderrr_shivam Жыл бұрын
@@devSackey okay bro. thanks
@devSackey
@devSackey Жыл бұрын
@@leaderrr_shivam Always welcome bro
@SadhanaSharma
@SadhanaSharma 3 жыл бұрын
12:10 how a++ becomes 9 ? It is a post increment na so 8 should be assigned na 🤔🤔
@funnycharacter650
@funnycharacter650 Жыл бұрын
(a++,++a,a>>2) a=4 b=2 Because in this the right shift highest priority thats why it gives a=2 Then in bracket all operators are comma then the associativity left to right Then Already a=2 is stored After a++ a=3 After ++a a=4 Then the b=2 because (a++,++a,2)
@CHETANBHAGATH
@CHETANBHAGATH 2 жыл бұрын
Printf ("Chetan")2,3,4; Value will be 6
@makrynub9256
@makrynub9256 Жыл бұрын
how its evaluating the string like that ???
@JayPatel-ou2ud
@JayPatel-ou2ud 2 жыл бұрын
Nice explanation thanks mam 🙏🙏
@syedalifathimaa9618
@syedalifathimaa9618 3 жыл бұрын
int a=printf("jenny"),2,3,4; output=> Error because in initialization without bracket, it acts as separator b=(a++,++a,a>>2); output=> 2 ; a has 10, b has 2
@k.annpurnamma3357
@k.annpurnamma3357 3 жыл бұрын
Sir You have a youtube channel right Please upload your doughts in c program and also what you written
@rathodkaran9297
@rathodkaran9297 2 жыл бұрын
Its not showing error
@saurajitnayak5696
@saurajitnayak5696 Жыл бұрын
Hlw, in mam question it is not assigned with character so output will be only jenny
@godza4735
@godza4735 Жыл бұрын
It will print Jenny
@jayeshkoli3876
@jayeshkoli3876 3 жыл бұрын
11:40 output is - jenny 2 jenny didi please like if o/p is right.
@justcode......2254
@justcode......2254 2 жыл бұрын
13:56 value of a is 10 and b is 2
@vishakha8342
@vishakha8342 2 жыл бұрын
When int a=(5,4); Output will be 4, then why to put 5 in the first place? What's the use of it?
@vinaymalik5437
@vinaymalik5437 3 жыл бұрын
Mam please 🙏 complete the playlist of DAA as soon as possible 🙏🙏🙏🙏🙏🙏🙏
@gauravpratapsingh8526
@gauravpratapsingh8526 2 жыл бұрын
❣❣❣explained in easy way❣❣
@ganesh_nama
@ganesh_nama 2 жыл бұрын
Dear Mam good Morning, i have executed the statement :
@aditiraj8147
@aditiraj8147 3 жыл бұрын
Ma'am ans of a=printf("Jenny"),2,3,4; Will be Jenny234. & Ans of b=(a++,++a, a>>2) will be 2
@001aariffarooqbhat7
@001aariffarooqbhat7 3 жыл бұрын
How sir it will b Jenny234
@001aariffarooqbhat7
@001aariffarooqbhat7 3 жыл бұрын
I think only jenny will b op
@tps8470
@tps8470 2 жыл бұрын
Thanks a Lot Mam
@meghanakondeboina4808
@meghanakondeboina4808 Жыл бұрын
For the first one the vwlue assingned to the b is 2 And the second is 8
@uttej1390
@uttej1390 3 жыл бұрын
Mam please start c++ language after c mam🙏🙏🙏 btw happy New year 🎉🎉🎉
@HariRam-ik8xz
@HariRam-ik8xz 3 жыл бұрын
a=2 b=2 Results
@nikhilbhardwaj9000
@nikhilbhardwaj9000 3 жыл бұрын
mam plzz make lectures in hindi too i learn fast with hindi explaination
@peterricky7461
@peterricky7461 2 жыл бұрын
Last problem answer=a=8,b=2
@durgalankipalli2541
@durgalankipalli2541 2 жыл бұрын
Will get a= Jenny, Other one a=10, b=2
@mahabubulalam1346
@mahabubulalam1346 10 ай бұрын
int a = 8, b; b =( a++, ++a,a>>2); a = 10 b = 2
@Tijiyabhanu
@Tijiyabhanu 8 ай бұрын
Yes I got the same
@dayawary2958
@dayawary2958 3 жыл бұрын
Ma'am pls object oriented programming k upar v video banaiyi 🙏🙏🙏
@rutujavaidya938
@rutujavaidya938 3 жыл бұрын
Please ma'am
@NOOR-dy6yn
@NOOR-dy6yn Жыл бұрын
last question a = 10 b = 2
@shubhambhatt2704
@shubhambhatt2704 3 жыл бұрын
Mam please do make a video on functions in c
@alone0.722
@alone0.722 Жыл бұрын
09:58 mam the right answer in 4
@Dipanshu________Rajput
@Dipanshu________Rajput Жыл бұрын
a & b will be 2 answer
@Liam-10
@Liam-10 Жыл бұрын
Thank you so much Ms Jenny ☺️❤️
@kuntalbhowmick5020
@kuntalbhowmick5020 3 жыл бұрын
#include void main() { printf(" %d %d %d",printf("A"),printf("BB"),printf("CCC")); } OUTPUT CCCBBA 1 2 3 Madam, can you please explain why the printf statements are executed from right to left. But when I write the following code #include void main() { if(printf("A"),printf("BB"),printf("CCC")) ; } Output is "ABBCCC". I am not understanding.
@handekarilingojivarasaikri782
@handekarilingojivarasaikri782 3 жыл бұрын
Output : a=10 b=2
@rohithsai9046
@rohithsai9046 3 жыл бұрын
hey, can you explain a bit please🥺
@Dunniio
@Dunniio 3 жыл бұрын
@@rohithsai9046 b = (a++,++a,a>>2) At a++ , a will be 9 At ++a , a will be 10 At a>>2 , 10/2^2 = 10/4 which will be 2.5 but only 2 will be returned So a=10 and b=2
@lionking6431
@lionking6431 3 жыл бұрын
Excuse me mam in ur channel, there is programming,DAA,DBMS,data structure,and algorithms,dynamic programming,os, which is priority to watch first and to learn...??
@yeshwanthrajsp5876
@yeshwanthrajsp5876 3 жыл бұрын
Iam going to follow u mam
@g.kashish2005
@g.kashish2005 5 ай бұрын
miss for program: #include int main() { int a; a=printf("jenny "),2,3,4; printf("%d",a); return 0; } expected ouput: jenny 2 actual output: jenny 6 even i tried to change a=printf("jenny "),5,6; but everytime it shows jenny 6 whereas when i am taking a=5,4; output :5 that is the initial value can you plz explian this, why is it happening?
@ShanmukKakarapalli
@ShanmukKakarapalli Жыл бұрын
The output is adding 1 to the last number madam
@shishtsharma4330
@shishtsharma4330 3 жыл бұрын
in equation int a=8,b; b=a++,++a; mam you said first assignment operator works bur we know that pre increment(++a) priority or precedence is high so why assignment operator works first
@kartavyasinhgohil8174
@kartavyasinhgohil8174 2 жыл бұрын
Assignment operator is higher priority compaire to pre increment (++a).
@elkanamwaigomole8953
@elkanamwaigomole8953 3 жыл бұрын
I like your teaching syle, now falling love to u🤘
@billionaireboy3368
@billionaireboy3368 3 жыл бұрын
😍🤘🤘🤘
@ashishmaurya3409
@ashishmaurya3409 3 жыл бұрын
kzbin.info/www/bejne/hGq5mqNjqrysh7M
@hmm7121
@hmm7121 3 жыл бұрын
11:43 it counts letters So there are 5 letters in jenny then O/P is:- Jenny5 Is it right?
@food8814
@food8814 3 жыл бұрын
same output is coming
@mohammedansil7587
@mohammedansil7587 3 жыл бұрын
Is that an error?? Jenny is not an integer... So how???
@akhilmahajan8582
@akhilmahajan8582 3 жыл бұрын
Mam, when will come lecture of statement and looping?
@ananyaghosh6402
@ananyaghosh6402 2 жыл бұрын
#include int main() { int a; a = (printf("jenny",2,1)); return 0; } mam this will print" jenny" only.
@talladvivedulasuryateja9064
@talladvivedulasuryateja9064 3 жыл бұрын
Mam will u give the notes. keep that notes pdf in description pls 🙏
@drawitnow9319
@drawitnow9319 3 жыл бұрын
maa'am can you please make videos on C++!!
@yusraah7745
@yusraah7745 3 жыл бұрын
Yes please
@anuragsrivastava4562
@anuragsrivastava4562 3 жыл бұрын
Dear Ma'am need your help for data analytics, If the video has already been made by you, i will appreciate if you can share the link with me or please advice the schedule once you plan to upload the tutorial video. Furthermore, requesting you to please complete the DAA tutorial playlist. Looking forward for your guidance Thanks!
@Rohan-21
@Rohan-21 3 жыл бұрын
Hi, You initially said that first operand i.e. 5 will be rejected and second operand 4 will be returned. But then again you said 5 will be printed.
@Rohan-21
@Rohan-21 3 жыл бұрын
Got the doubt cleared. Thanks for the explanation.
@ashishmaurya3409
@ashishmaurya3409 3 жыл бұрын
kzbin.info/www/bejne/hGq5mqNjqrysh7M
@swetakumari6641
@swetakumari6641 3 жыл бұрын
I also get this confusion?
@godza4735
@godza4735 Жыл бұрын
I think she's meaning when there''s a brackets then will return rightmost value but if there are not brackets left value will be return
@tithighosh2169
@tithighosh2169 3 жыл бұрын
Thank you ma'am ❤️❤️.
@tpallavi2097
@tpallavi2097 3 жыл бұрын
Upload the next lecture also mam...
@alexandertom2859
@alexandertom2859 3 жыл бұрын
Waiting for next video ,mam
@adityakodati1816
@adityakodati1816 3 жыл бұрын
Please do vedios on python programming please 🙏🙏🙏🙏
@hareeshkumar9554
@hareeshkumar9554 3 жыл бұрын
a=10,b=2 i get mam..tq mam
@mahbubanimmi9579
@mahbubanimmi9579 9 ай бұрын
How did you slove?
@tpallavi2097
@tpallavi2097 3 жыл бұрын
Do the lecture on loops mam
@b3ast915
@b3ast915 3 жыл бұрын
Hello mam,i am 1st yr cse student at nit warangal. Mam, i have 2 yr gap bewtween 12th and start of btech. 1yr complete drop and 1 yr partial drop from nit jalandhar mechanical. Mam, how will it affect my placement? Pls help🙏🙏
@ashishkumar-fd4gp
@ashishkumar-fd4gp 3 жыл бұрын
yes but don't loose hope ....all the best for your future
@Devi.v2-h9c
@Devi.v2-h9c Ай бұрын
mam i think that it will print the value of a
@hariparuchuru3858
@hariparuchuru3858 2 жыл бұрын
when a>>2 the op will be a=10 and b=2.
@its_himanshu_agarwal7888
@its_himanshu_agarwal7888 2 жыл бұрын
a = printf("jenny"),2,3,4 then a = printf("jenny")
@Unknown-uo7yy
@Unknown-uo7yy 3 жыл бұрын
lecture of member selection operators( . , ->) are missing
@chanabasayyasindagimath9516
@chanabasayyasindagimath9516 3 жыл бұрын
Wishing happy New year & G B Y TO TEACHER
@chanabasayyasindagimath9516
@chanabasayyasindagimath9516 3 жыл бұрын
Thanks and congrats...Mdm Teacher
@chanabasayyasindagimath9516
@chanabasayyasindagimath9516 3 жыл бұрын
Thanks for your English conversation
@shivaprasad8919
@shivaprasad8919 3 жыл бұрын
Ma'am please make a vedio on tracing of tower of henoi. Although lot of lectures avoilable in KZbin regarding TOH no one is explaining the tracing of recursive calls. All are talking logically actually that makes no sense. Please take this appeal to consideration. Looking forward to TOH tracing...
@ashishmaurya3409
@ashishmaurya3409 3 жыл бұрын
kzbin.info/www/bejne/hGq5mqNjqrysh7M
C_21 Operators Precedence and Associativity in C | C programming Tutorials
11:29
Jenny's Lectures CS IT
Рет қаралды 319 М.
C_19 Operators in C - Part 7 (Bitwise Operators-II) |  C Programming Tutorials
18:20
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 4,5 МЛН
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 57 МЛН
Comma Operator in C
8:30
Neso Academy
Рет қаралды 185 М.
C_62 Strings in C - part 1 | C programming tutorials
15:41
Jenny's Lectures CS IT
Рет қаралды 519 М.
C_12 Data Types in C - Part 3 | C Programming Tutorials
21:02
Jenny's Lectures CS IT
Рет қаралды 285 М.
C_18 Operators in C - Part 6 | Bitwise Operators |  C Programming Tutorials
15:21
Jenny's Lectures CS IT
Рет қаралды 450 М.
C_23 Formatted Input Functions in C Language || C Programming
19:16
Jenny's Lectures CS IT
Рет қаралды 267 М.
you will never ask about pointers again after watching this video
8:03
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 4,5 МЛН