Тёмный

Scope of Variables - Local vs Global 

Neso Academy
Подписаться 2,7 млн
Просмотров 403 тыс.
50% 1

Programming & Data Structures: Scope of Variables in C programming.
Topics discussed:
1. What is the scope of a variable?
2. Local variable.
3. Example of local variable.
4. Global variable.
5. Example of global variable.
C Programming Lectures: goo.gl/7Eh2SS
Follow Neso Academy on Instagram: @nesoacademy(bit.ly/2XP63OE)
Follow me on Instagram: @jaspreetedu(bit.ly/2YX26E5)
Contribute: www.nesoacademy...
Memberships: bit.ly/2U7YSPI
Books: www.nesoacademy...
Website ► www.nesoacademy...
Forum ► forum.nesoacade...
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#CProgrammingByNeso #CProgramming #ScopeOfVariables

Опубликовано:

 

7 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 154   
@arpansarkar7924
@arpansarkar7924 5 лет назад
This channel needs more subscriber. Great videos thanks Neso Academy.
@RehanZukhi
@RehanZukhi 3 года назад
Only when i was breakin down everyday because i felt i will fail in c programming, my lecturer shared this playlist, and now i am aiming to excel instead of just passing the test. Thanks Neso Academy!
@sathviksan7723
@sathviksan7723 2 года назад
hows it going now ?
@ayushbaliyan2054
@ayushbaliyan2054 Год назад
। 😊
@ayushbaliyan2054
@ayushbaliyan2054 Год назад
। 😊
@ayushbaliyan2054
@ayushbaliyan2054 Год назад
K.a।।। ।।।। । ।। ।
@chinigepallieswarsaikumar7588
@chinigepallieswarsaikumar7588 5 лет назад
This channel is God fo me in programming as a beginner
@vaishnavimendre469
@vaishnavimendre469 5 лет назад
All videos are very great!!! Thank u sir
@astasuleo
@astasuleo 5 лет назад
this is the best series of C explaination ever. Please keep it up. Im trying to help this channel by sharing it everywhere i can. I'm a newbie for C in PIC using MPLAB. I wish in the near future, you could be able to have time for making videos based on C in PICs.
@eshikakumari9199
@eshikakumari9199 4 года назад
Incredible explanation...
@DiyaMehta-kv5xn
@DiyaMehta-kv5xn 4 месяца назад
Exactly
@javaexpertsa8947
@javaexpertsa8947 6 лет назад
You explain it so good, i just love this youtube channel, wish i had found it earlier!
@poojaheera7658
@poojaheera7658 4 года назад
The explanation is just perfect thanks alot sir 🙏
@kommsk
@kommsk 3 года назад
Wonderful...it starts to clear up in my brain all that confusing concepts of why, how... please keep up
@Jkt61205
@Jkt61205 4 года назад
this channel is god for me and all of the persons who are watching these videos,this channel needs at least more than 1 million subscribers,Believe me he teaches EXTRAORDINARILY;he teaches EVERY POINT.THANK YOU SO MUCH SIR.
@hetaeramancer
@hetaeramancer 3 года назад
ikr, he's literally the best C programming language teacher i'd ever come across.
@Jkt61205
@Jkt61205 3 года назад
@@hetaeramancer yes, it's true
@swatikumari6691
@swatikumari6691 3 года назад
Well explained, Clear Concept and too much helpful for those students who are trying to learn c programming.Thank you so much sir for this video
@jasminesheik3497
@jasminesheik3497 4 года назад
This vedio deserves lots of likes. The best ever vedio 😊
@ridmasathsarani7468
@ridmasathsarani7468 2 года назад
6 hour lecture content in 11.11 mins. Great work and Thank you!
@programmingwithjavascript3579
Have you become developer
@alfredchilini5518
@alfredchilini5518 5 лет назад
Neso Academy u r the best in the field good job guys
@parhaimowarson2503
@parhaimowarson2503 2 года назад
Thank you, Neso Academy for your incredible explanation.....
@brijusingh845
@brijusingh845 4 года назад
Wow... Sir..... Clear crystal !!!! Concept.... God bless you
@bhramastraaa9391
@bhramastraaa9391 Год назад
Though it wasn't a video fully on functions, but I cleared all my doubts about function.
@nagamadiki6313
@nagamadiki6313 3 года назад
Wow what a explanation... Never before ever after, take a bow🥰
@ichaa3tech
@ichaa3tech 4 года назад
This course is better than all the paid courses
@johnsonmediaprod3239
@johnsonmediaprod3239 6 месяцев назад
This is a question of my class discussion, so you have well explained that and clarified that . Great job
@dominiquedevries9972
@dominiquedevries9972 4 года назад
Wow it,s very detailed. Thank you!!!
@parthshiroya4436
@parthshiroya4436 4 года назад
Exactly what i was looking for !!
@learncode6952
@learncode6952 3 года назад
After searching lots of garbage stuff I found this course was very much helpful
@saichintada4471
@saichintada4471 3 года назад
Thank u so much for your understandable and good explanation neso academy 😘😘
@Aerish369
@Aerish369 Год назад
Thank you Neso Academy for this informational video.
@Ashishrajcreations
@Ashishrajcreations Год назад
Greatly thankful sir for your large effort in explaining c language in detailed and depth .
@shahfaisal7760
@shahfaisal7760 4 года назад
Thanks A Lot Sir❤️ ...It helped me out 👍
@dedeepya2611
@dedeepya2611 3 года назад
Just awesome....easily understandable 🙏
@AbhishekKumar-zw5cd
@AbhishekKumar-zw5cd 5 лет назад
sir mind blowing concept
@mitthu5076
@mitthu5076 3 года назад
Thanku sir ❤ you are global variable😊😊.... Cause we all are able to reach you without any offline classes
@jatinrawat7415
@jatinrawat7415 2 года назад
Just Perfectly Exaplined !!!! Amazing
@suryakilaparthikilaparthi5763
@suryakilaparthikilaparthi5763 3 года назад
Sir, thank you soo much. I am searching for a right video that I could understand. In this process I came through ur video sir with a clear cut explanation. Thank you so much sir.
@MarkusEicher70
@MarkusEicher70 6 месяцев назад
Hello Jaspreet, hi Neso Academy. I highly appreciate your commitment to free education and I am very thankful for your high quality content. I followed the playlist C Programming and Data Structures from the first video on, and it is one of the best, if not the best introduction series I saw till this point. Many thanks and may you be blessed and I wish you much success with finding a way to get compensated for your valuable efforts. I will try to contribute with what ever I can to help keeping this channel alive for learners.
@nesoacademy
@nesoacademy Месяц назад
Thank you :)
@tarjunrao8823
@tarjunrao8823 3 года назад
Love of explaination from india
@yuwendridesilva6956
@yuwendridesilva6956 3 года назад
I donno how the hell I decided to save this playlist on You tube not knowing this is gonna be a GOLDEN playlist.👑👑👑👑👑
@adithya817
@adithya817 2 года назад
Best explanation
@sairuthwikbandari9730
@sairuthwikbandari9730 2 года назад
Thanks a lot for neso academy awesome explaination
@TheFeralEngineer
@TheFeralEngineer 3 года назад
So glad i found these videos
@salonisrivastava5527
@salonisrivastava5527 4 года назад
What an explanation man👍👍 Very nice😊
@Vladimir93459
@Vladimir93459 3 года назад
Is it enough for placements ?
@frankmuhiu5059
@frankmuhiu5059 4 месяца назад
Thank you, Sir
@zandewilson
@zandewilson Год назад
Very helpful. Thanks
@bmfahim7321
@bmfahim7321 2 года назад
Great explanation, Thank you
@silosizodube4881
@silosizodube4881 2 года назад
Explanation soo clear
@kunnudev7250
@kunnudev7250 2 года назад
Great job please continue awesome videos salute to you
@vakhariyajay2224
@vakhariyajay2224 2 года назад
Thank you very much. You are a genius. 👍👍🔝🔝
@tayyab.sheikh
@tayyab.sheikh 8 месяцев назад
Pure concepts!
@jarjarbinks9937
@jarjarbinks9937 2 года назад
at 6:25 the two variables in the second case have different addresses so that actually makes it two different memory locations. However in the first case can it not be interpreted as changing the variable rather than it's redefinition because when applying a loop, and over multiple iterations the value of the variable might be changing but that isn't interpreted as the redefinition of the function.
@zakirahimi7924
@zakirahimi7924 6 месяцев назад
the scope of a variable is not its lifetime. scope is the accessibility or visibility of a variable to other parts of a program. lifetime is the time between the creation of a variable and death of the variable, so a variable may be alive in the program but not accessible. (keep up the great work, your content is very very structured.)
@paintinginsanes3515
@paintinginsanes3515 2 года назад
Really great explanation
@gajananand
@gajananand Год назад
ISO must certify this person is 100% genuine
@md_daud
@md_daud 2 года назад
Thank you!!!
@sakaldev4041
@sakaldev4041 3 года назад
Thanks for this content.
@mateuszlukaszczyk5359
@mateuszlukaszczyk5359 3 года назад
Thanks for the great content.
@harsh9558
@harsh9558 3 года назад
Sir helped a lot!!
@Beatzz555
@Beatzz555 3 года назад
Thank you sir😌
@starman511
@starman511 5 лет назад
Very helpful video, thank you!
@naveenkumar-zo1cj
@naveenkumar-zo1cj Год назад
Wonderful
@gramps717
@gramps717 2 года назад
very well explained goodddddd for uu
@opst1704
@opst1704 5 лет назад
scope != lifetime just look at static local variable, scope : function lifetime : program runtime
@sruthimajhi5610
@sruthimajhi5610 Год назад
Great one sir!👍🏻
@mrnaveen6791
@mrnaveen6791 Год назад
osm explanation....
@dimplejain7226
@dimplejain7226 6 лет назад
excellent videos!!!! Best teacher ...
@rushabshetty5092
@rushabshetty5092 2 года назад
osm teaching
@javierparrauriostegui1413
@javierparrauriostegui1413 4 года назад
Great video! New sub!
@Pritamdas-bg7fp
@Pritamdas-bg7fp 6 лет назад
good explanation....thank u sir
@kammaganisricharan5850
@kammaganisricharan5850 3 года назад
Tq sir 🙏🙏
@arjumandvillagelife
@arjumandvillagelife 3 года назад
wonderful👍👍 great🌷
@Therockingww
@Therockingww 3 года назад
awesome video !!
@reshma4768
@reshma4768 3 года назад
Sir, please upload a full course on python programming also
@mummadiamrutha8624
@mummadiamrutha8624 4 месяца назад
%d is nothing but storage of variable and is used to print value in next line
@anshulbaurai664
@anshulbaurai664 4 года назад
Great video
@teetole472
@teetole472 Год назад
Ek dum chakaas👌👌
@joltorongoforssc228
@joltorongoforssc228 5 месяцев назад
Great
@shashanksrivastava4716
@shashanksrivastava4716 5 лет назад
Sir, Please upload the notes in PDF format on the website.
@md.mahaburrahmannadim233
@md.mahaburrahmannadim233 3 года назад
super content
@Vladimir93459
@Vladimir93459 3 года назад
Is it enough for placements ?
@shefatabassum5807
@shefatabassum5807 Год назад
Calling a function means we are transferring the control from this to that function
@narsimhareddy4742
@narsimhareddy4742 3 года назад
Can anyone explain me last example? int var = 3; is inside int fun(),so how it is called global variable?
@RATANAGARWALITINFORMER
@RATANAGARWALITINFORMER 2 года назад
v helping
@prateekkubera8922
@prateekkubera8922 2 года назад
can we get pdf or written notes
@true4189
@true4189 4 года назад
Thank u
@Vladimir93459
@Vladimir93459 3 года назад
Is it enough for placements ?
@logadharani5132
@logadharani5132 4 года назад
9:17 ...very bull ...lol you're amazing man, I have exams in 3 hours!
@sudev216
@sudev216 3 года назад
That's what we expect from us Last minute study OP
@tofuninja7061
@tofuninja7061 6 лет назад
Thanks
@petronecosmetics9230
@petronecosmetics9230 5 лет назад
Awesome guy.
@Just-imagine-iff
@Just-imagine-iff 2 года назад
What's the difference between %d/n and only %d
@DSCSNayanakb
@DSCSNayanakb 5 лет назад
Thank u sir. Pls upload such videoes on java
@cringentertainment2605
@cringentertainment2605 4 года назад
Sir Please make Lecture on C++👏👏
@infinitei6539
@infinitei6539 2 года назад
you told that main function is the starting part of the program and there's another function fun?? please explain
@natureandtech09
@natureandtech09 3 года назад
Sir you said that if we trying to acess a variable in internal block we can access the contents of outer block also so sir in output question 5:20 why the internal block print 4 as a output as we can see it.can access outerblock var and gives erorr due to redifinition of var because internal block can access outer block information plz explain sir
@priyanshigarg5728
@priyanshigarg5728 5 лет назад
Sir,, What is the lifetime of a dynamically created variable???
@sreesen3159
@sreesen3159 Год назад
How to access the global variable in a function which has a variable of the same name as the global variable
@AbdulkerimJemal-tc6mn
@AbdulkerimJemal-tc6mn 4 месяца назад
The example mentioned in the video says that we cannot enter another var that will make an error but as we learned in itialization of variable that we can change the var and am a little bit confused with it can u explain for Please ????
@namanjain4237
@namanjain4237 2 года назад
Bhaiya pehle global variable print hoga ya bracket ke andar wala??
@sayanstrsc.7272
@sayanstrsc.7272 4 года назад
? I used to know that a program is executed from the main function. Then how is the variable created before the start of execution of main function?
@MarwanDSaleh
@MarwanDSaleh Год назад
*Minor correction* Extent = lifetime, not the scope. Scope of a variable determines the area or a region of code where a variable is available to use. Anyway, thank you for the clear and nice explanation. I am still a big fan of this channel :)
@amarnath8733
@amarnath8733 2 года назад
1st and 2 nd videos are missing in playlist please add this videos in playlist
@rakesh_007
@rakesh_007 4 года назад
Please put the captions
@manumahi4180
@manumahi4180 3 года назад
When we have to use %d ,and only %d.we are giving here two integers right then what is the difference
@porankirajkumar4709
@porankirajkumar4709 4 года назад
Sir why the function fun() doesn't print the global variable if we don't call the fun in the local variable??
@clementnathanael3085
@clementnathanael3085 2 года назад
int main() { char var[] = "Neso Academy"; printf("%s is a god", var); return 0; }
@sampath1215
@sampath1215 5 лет назад
please add Computer organization videos also.
Далее
Variable Modifiers − Auto & Extern
12:52
Просмотров 336 тыс.
What is Scope in Python??
10:25
Просмотров 51 тыс.
C Programming (Important Questions Set 1)
13:42
Просмотров 1,4 млн
Scope and Local Variables in Java
9:41
Просмотров 88 тыс.
Variable Scope | C Programming Tutorial
9:49
Просмотров 4 тыс.
for and while Loops
6:49
Просмотров 732 тыс.
Master Pointers in C:  10X Your C Coding!
14:12
Просмотров 312 тыс.
Local vs global variables in C
8:32
Просмотров 17 тыс.
Variables in Java ✘【12 minutes】
12:32
Просмотров 207 тыс.
Variable Modifiers − Static
19:02
Просмотров 246 тыс.