Comma Operator in C

preview_player
Показать описание
C Programming & Data Structures: Comma Operator in C
Topics discussed:
1. What is the Comma Operator?
2. Use of Comma Operator as the separator.
3. Use of Comma Operator as an operator.
4. Precedence of Comma Operator.
5. Examples based on Comma Operator.
6. Homework on Comma Operator.

Music:
Axol x Alex Skrindo - You [NCS Release]

#CProgrammingByNeso #CProgramming #CommaOperator
Рекомендации по теме
Комментарии
Автор

Thank you sir for providing c lectures for free. When many coachings are asking hefty amount for teaching the same thing you are providing this for free. Thank you to the creator of neso academy.

lifeislarge
Автор

He ( , ) was underrated,
But u (neso ac.) brought him into lime light!!
Respect!!

harshraghuwanshi
Автор

Litreally gold series .
You will pay 3000-4000 rupees in offline coaching classes and then they will teach you with so much minute details .
But Neso is teaching, for free of cost .
Geeksforgeeks for C is good, but they teach theory more .
Hence geeksforgeeks can be used for note making and then simultaneous examples can be studied from here for practical knowledge .
Thank you very much neso .

harshmk
Автор

The output is : 50.
Thank you so much, sir, for your such kind of efforts. Your explanation is the best for me so far.

C____KhurshedulAlam
Автор

ans: 50;
given num = (var=15, var+35), then initially var =15 was evaluated and the second operand becomes var+35 == 15+35 which results 50. now 50 will be printed.

purushothamchembeti
Автор

my logical thinking gets increased through this awesome course

ahmedkamal
Автор

I'm loving your c programming language series and I suggested it to my classmates. You have done a great 👏 work, thank you sir 😊

vivekkispotta
Автор

1:10 Yes, can be used as a seperator, not for pointers though, haven't seen a video where you teach pointers yet though so maybe you'll mention it there, it's a pitfall I've seen a lot of people make though so worth mentioning.

example:
int *a, b, c; // Only 'a' is a pointer the rest are ints
int *a, *b, *c; // All are pointers

Fred
Автор

Never saw the concepts that nesoacademy guy explains in any videos that i've watched .

umairalvi
Автор

i read many articles without understanding until i watched this video you described with easy to understand definitions next to illustrations, thanks, hope you do more topics on machine learning and computer science, and math

mykun
Автор

Appreciate for the course sir, people are asking for tons of $ for even the basics and here you are doing it for free. Reccomended to my classmates and my best friends starting C also :D

kiksapro
Автор

I really impressed your way of teaching sir.I learnt so many new topics in C language by following this

viswapriya
Автор

Output = 50

num = (var=15, var+35),
i.e var =15 (First expression in the bracket and "assignment" operator takes precedence over "comma" operator, hence var is assigned a value of 15)
next:
var+35 = 15+35 i.e 50.
next:
num will be assigned the value of 50 as var=50 (rightmost operand within the bracket)

TheSabarno
Автор

Just excellent...much much much more than paid found this things about comma operator
may God bless you more

dipanjanhore
Автор

this is seriously an awesome explanation, i'm enlightened

taher...
Автор

I really like your way of teaching. I also recommend my friends to watch the videos of Neso Academy. Cordial thanks to you. From Bangladesh.

muktadir-us-saleheen
Автор

Your way in teaching is awesome, thank you <3

abdullahmeaad
Автор

Thank you from the bottom my heart sir that as due to financial problems i'm not learned c but because of you this happened

NaveenKumar-yjoh
Автор

Sir you really are doing an awesome job by providing such good content and that too free .Please keep continuing such great work.

anubhav
Автор

The output will be 50. Because ", " is used as operator and due to which the rightmost operand's value is considered which is var+35. and also var=15 is also evaluated but rejected at last due to this evaluation the var is initialized to 15.

subendernath