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

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

Jenny's Lectures CS IT

3 года назад

182,256 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@AdityaSingh-zh1fh
@AdityaSingh-zh1fh - 28.11.2023 16:22

b= 2

Ответить
@abhishek5212
@abhishek5212 - 25.11.2023 05:17

thanks 💛💛💛

Ответить
@user-hg9wo5sk9o
@user-hg9wo5sk9o - 06.11.2023 18:19

The output is adding 1 to the last number madam

Ответить
@maryannemuthoni5388
@maryannemuthoni5388 - 04.11.2023 08:46

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

Ответить
@jayasrithamaada3779
@jayasrithamaada3779 - 01.11.2023 10:06

2 ans

Ответить
@rishabhgupta2364
@rishabhgupta2364 - 25.10.2023 10:24

a = printf( "jenny" ),2,3,4;
Answer a= 4

Ответить
@ashishxsoni
@ashishxsoni - 18.10.2023 16:49

Gr8

Ответить
@shifakhan7141
@shifakhan7141 - 18.10.2023 00:42

dhang ke editor se video edit kiya karo madam ji!

Ответить
@cricketwithmethu9976
@cricketwithmethu9976 - 15.10.2023 16:27

good job

Ответить
@funnycharacter650
@funnycharacter650 - 07.10.2023 09:34

(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)

Ответить
@user-nt6ow6wp2e
@user-nt6ow6wp2e - 05.10.2023 15:17

sorry 4202500

Ответить
@user-nt6ow6wp2e
@user-nt6ow6wp2e - 05.10.2023 15:16

ma'am i am getting 420500 as output...

Ответить
@NOOR-dy6yn
@NOOR-dy6yn - 29.09.2023 16:47

last question
a = 10
b = 2

Ответить
@lokesh6828
@lokesh6828 - 23.09.2023 16:35

answer to hw question is 2

Ответить
@Dipanshu________Rajput
@Dipanshu________Rajput - 23.09.2023 15:10

a & b will be 2 answer

Ответить
@manojKumarBoddu-eu7mz
@manojKumarBoddu-eu7mz - 15.09.2023 19:21

a =8 b =8
8/2=4

Ответить
@anuragkumar228
@anuragkumar228 - 12.09.2023 18:18

i love you madam jii 😍😍😘💋

Ответить
@brito79784
@brito79784 - 03.08.2023 11:37

correct me if I am wrong

Ответить
@brito79784
@brito79784 - 03.08.2023 11:36

b = 2 finall result ma'am. Since a++ and ++a will be operated and rejected then the a>>2 will be assigned to be,

Ответить
@nageswaraosangepu-eg2oe
@nageswaraosangepu-eg2oe - 07.07.2023 16:52

Error

Ответить
@Liam-10
@Liam-10 - 06.07.2023 03:55

Thank you so much Ms Jenny ☺️❤️

Ответить
@Liam-10
@Liam-10 - 06.07.2023 03:51

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 ✅👌

Ответить
@Liam-10
@Liam-10 - 06.07.2023 03:12

int a;
a = jenny , 2 ,3 ,4;
a = jenny;
Because without brackets we get the first value

Ответить
@Iamsrujan..
@Iamsrujan.. - 30.06.2023 11:19

The way you pronounce comma is funny (coma) 😂😅

Ответить
@abdulrahimjalloh363
@abdulrahimjalloh363 - 29.06.2023 19:10

If i can take you to the moon and stars i should have done that 🙂, thanks mam, you made it easy for us.

Ответить
@PhysicswallahModule
@PhysicswallahModule - 11.06.2023 11:51

a=10....b=2

Ответить
@anand1155
@anand1155 - 01.06.2023 17:46

At 10.23
Int a=8,b; is it correct declaration mam?

Ответить
@isaacsackitey5557
@isaacsackitey5557 - 09.05.2023 19:54

a = 10;
b = 2;

printf("Thanks jenny");

Ответить
@srinukanuparthi2500
@srinukanuparthi2500 - 29.03.2023 13:29

For a=8
b=(a++,++a,a>>2)
b=a++,++a
Output is b=2
a=10

Ответить
@aerofred2002
@aerofred2002 - 01.03.2023 18:10

Videos are being cut. Somebody is deleting out content in the middle.

Ответить
@naveennagendra743
@naveennagendra743 - 27.02.2023 15:40

2 mam .

Ответить
@mainshashaik5097
@mainshashaik5097 - 17.02.2023 16:19

2

Ответить
@rukayatmuhammed3670
@rukayatmuhammed3670 - 10.02.2023 14:10

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

Ответить
@vinayaksalagar3098
@vinayaksalagar3098 - 26.01.2023 22:03

Tq mam have a great job

Ответить
@muralibudugula1749
@muralibudugula1749 - 22.01.2023 14:15

Answer is 2

Ответить
@safeyamohamed3854
@safeyamohamed3854 - 18.01.2023 03:15

❤‍🔥❤‍🔥❤‍🔥❤‍🔥❤‍🔥

Ответить
@kashvic7570
@kashvic7570 - 16.01.2023 11:39

For b=(a++,++a,a>>2);
Why a=10??

Ответить
@purnakundu9056
@purnakundu9056 - 04.01.2023 19:00

Output is 102

Ответить
@mohan_yerra
@mohan_yerra - 26.12.2022 19:54

Comma operator output is jenny

Ответить
@supritypal3555
@supritypal3555 - 25.12.2022 17:01

Mam I don't get the same output for comma operator

Ответить
@meghanakondeboina4808
@meghanakondeboina4808 - 24.12.2022 19:07

For the first one the vwlue assingned to the b is 2
And the second is 8

Ответить
@khushbuanuragi8697
@khushbuanuragi8697 - 10.12.2022 21:14

b=(a++,++a, a>>2)
a=10 and b=2

Ответить
@vanshikagarg7586
@vanshikagarg7586 - 09.12.2022 12:46

b=(a++,++a,a>>2)
Output =2

Ответить
@vanshikagarg7586
@vanshikagarg7586 - 09.12.2022 12:37

Output is coming Jenny5

Ответить