Scope of Variables - Local vs Global

  Рет қаралды 415,664

Neso Academy

Neso Academy

Күн бұрын

Пікірлер: 160
@arpansarkar7924
@arpansarkar7924 5 жыл бұрын
This channel needs more subscriber. Great videos thanks Neso Academy.
@chinigepallieswarsaikumar7588
@chinigepallieswarsaikumar7588 5 жыл бұрын
This channel is God fo me in programming as a beginner
@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।।। ।।।। । ।। ।
@eshikakumari9199
@eshikakumari9199 4 жыл бұрын
Incredible explanation...
@DiyaMehta-kv5xn
@DiyaMehta-kv5xn 6 ай бұрын
Exactly
@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.
@ridmasathsarani7468
@ridmasathsarani7468 3 жыл бұрын
6 hour lecture content in 11.11 mins. Great work and Thank you!
@programmingwithjavascript3579
@programmingwithjavascript3579 Жыл бұрын
Have you become developer
@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 🙏
@jasminesheik3497
@jasminesheik3497 5 жыл бұрын
This vedio deserves lots of likes. The best ever vedio 😊
@kommsk
@kommsk 3 жыл бұрын
Wonderful...it starts to clear up in my brain all that confusing concepts of why, how... please keep up
@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
@nagamadiki6313
@nagamadiki6313 3 жыл бұрын
Wow what a explanation... Never before ever after, take a bow🥰
@alfredchilini5518
@alfredchilini5518 5 жыл бұрын
Neso Academy u r the best in the field good job guys
@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
@brijusingh845
@brijusingh845 4 жыл бұрын
Wow... Sir..... Clear crystal !!!! Concept.... God bless you
@MarkusEicher70
@MarkusEicher70 8 ай бұрын
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 3 ай бұрын
Thank you :)
@learncode6952
@learncode6952 3 жыл бұрын
After searching lots of garbage stuff I found this course was very much helpful
@parhaimowarson2503
@parhaimowarson2503 2 жыл бұрын
Thank you, Neso Academy for your incredible explanation.....
@ichaa3tech
@ichaa3tech 5 жыл бұрын
This course is better than all the paid courses
@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.👑👑👑👑👑
@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.
@mitthu5076
@mitthu5076 3 жыл бұрын
Thanku sir ❤ you are global variable😊😊.... Cause we all are able to reach you without any offline classes
@bhramastraaa9391
@bhramastraaa9391 Жыл бұрын
Though it wasn't a video fully on functions, but I cleared all my doubts about function.
@parthshiroya4436
@parthshiroya4436 4 жыл бұрын
Exactly what i was looking for !!
@salonisrivastava5527
@salonisrivastava5527 4 жыл бұрын
What an explanation man👍👍 Very nice😊
@Vladimir93459
@Vladimir93459 3 жыл бұрын
Is it enough for placements ?
@johnsonmediaprod3239
@johnsonmediaprod3239 8 ай бұрын
This is a question of my class discussion, so you have well explained that and clarified that . Great job
@Aerish369
@Aerish369 Жыл бұрын
Thank you Neso Academy for this informational video.
@dominiquedevries9972
@dominiquedevries9972 4 жыл бұрын
Wow it,s very detailed. Thank you!!!
@teetole472
@teetole472 Жыл бұрын
Ek dum chakaas👌👌
@jatinrawat7415
@jatinrawat7415 2 жыл бұрын
Just Perfectly Exaplined !!!! Amazing
@dedeepya2611
@dedeepya2611 4 жыл бұрын
Just awesome....easily understandable 🙏
@saichintada4471
@saichintada4471 3 жыл бұрын
Thank u so much for your understandable and good explanation neso academy 😘😘
@opst1704
@opst1704 5 жыл бұрын
scope != lifetime just look at static local variable, scope : function lifetime : program runtime
@AbhishekKumar-zw5cd
@AbhishekKumar-zw5cd 5 жыл бұрын
sir mind blowing concept
@zandewilson
@zandewilson Жыл бұрын
Very helpful. Thanks
@Ashishrajcreations
@Ashishrajcreations Жыл бұрын
Greatly thankful sir for your large effort in explaining c language in detailed and depth .
@adithya817
@adithya817 2 жыл бұрын
Best explanation
@shahfaisal7760
@shahfaisal7760 4 жыл бұрын
Thanks A Lot Sir❤️ ...It helped me out 👍
@tarjunrao8823
@tarjunrao8823 3 жыл бұрын
Love of explaination from india
@anand-Nov28
@anand-Nov28 Жыл бұрын
ISO must certify this person is 100% genuine
@zakirahimi7924
@zakirahimi7924 9 ай бұрын
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.)
@TheFeralEngineer
@TheFeralEngineer 3 жыл бұрын
So glad i found these videos
@silosizodube4881
@silosizodube4881 3 жыл бұрын
Explanation soo clear
@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.
@paintinginsanes3515
@paintinginsanes3515 2 жыл бұрын
Really great explanation
@dimplejain7226
@dimplejain7226 6 жыл бұрын
excellent videos!!!! Best teacher ...
@bmfahim7321
@bmfahim7321 3 жыл бұрын
Great explanation, Thank you
@narsimhareddy4742
@narsimhareddy4742 3 жыл бұрын
Can anyone explain me last example? int var = 3; is inside int fun(),so how it is called global variable?
@sairuthwikbandari9730
@sairuthwikbandari9730 2 жыл бұрын
Thanks a lot for neso academy awesome explaination
@kunnudev7250
@kunnudev7250 2 жыл бұрын
Great job please continue awesome videos salute to you
@shashanksrivastava4716
@shashanksrivastava4716 5 жыл бұрын
Sir, Please upload the notes in PDF format on the website.
@sruthimajhi5610
@sruthimajhi5610 2 жыл бұрын
Great one sir!👍🏻
@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
@sandeepmishra3972
@sandeepmishra3972 5 жыл бұрын
At 10:52..why do we need to call that function [ fun()] in int main function
@kunalk5806
@kunalk5806 4 жыл бұрын
so why we are calling the function fun() in int main function is that because the function fun() outside the int main function gets executed..Thats why it prints output 10 in fun()
@rushabshetty5092
@rushabshetty5092 2 жыл бұрын
osm teaching
@namanjain4237
@namanjain4237 2 жыл бұрын
Bhaiya pehle global variable print hoga ya bracket ke andar wala??
@Just-imagine-iff
@Just-imagine-iff 2 жыл бұрын
What's the difference between %d/n and only %d
@AnoopTripathi-n3g
@AnoopTripathi-n3g 19 күн бұрын
Bhai next line ki difference hai bs ( %d ) se next line aa jati hai
@tayyab.sheikh
@tayyab.sheikh 10 ай бұрын
Pure concepts!
@javierparrauriostegui1413
@javierparrauriostegui1413 4 жыл бұрын
Great video! New sub!
@sakaldev4041
@sakaldev4041 3 жыл бұрын
Thanks for this content.
@vakhariyajay2224
@vakhariyajay2224 3 жыл бұрын
Thank you very much. You are a genius. 👍👍🔝🔝
@infinitei6539
@infinitei6539 3 жыл бұрын
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
@HasnainKhan-jj5fb
@HasnainKhan-jj5fb 2 ай бұрын
If you get the answer explain it to me also
@SreeRahul-x4w
@SreeRahul-x4w 22 сағат бұрын
That is because,always a function will first look for the variable defined within its block .only if it is not defined anywhere inside it's block,the outer blocks are checked
@shefatabassum5807
@shefatabassum5807 2 жыл бұрын
Calling a function means we are transferring the control from this to that function
@prateekkubera8922
@prateekkubera8922 2 жыл бұрын
can we get pdf or written notes
@kattaharikrishna2238
@kattaharikrishna2238 Ай бұрын
100 rs i can send total c program to easy understanding for beginners
@harsh9558
@harsh9558 3 жыл бұрын
Sir helped a lot!!
@mateuszlukaszczyk5359
@mateuszlukaszczyk5359 4 жыл бұрын
Thanks for the great content.
@AbdulkerimJemal-tc6mn
@AbdulkerimJemal-tc6mn 6 ай бұрын
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 ????
@srikarrepaka5023
@srikarrepaka5023 4 жыл бұрын
0:05 1:55 6:37 8:04 10:55
@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??
@reshma4768
@reshma4768 4 жыл бұрын
Sir, please upload a full course on python programming also
@starman511
@starman511 5 жыл бұрын
Very helpful video, thank you!
@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?
@Beatzz555
@Beatzz555 3 жыл бұрын
Thank you sir😌
@v8wr253
@v8wr253 2 ай бұрын
Thank you so much
@Therockingww
@Therockingww 3 жыл бұрын
awesome video !!
@Aditya-it9jt
@Aditya-it9jt 3 жыл бұрын
Where did i find these notes?
@manumahi4180
@manumahi4180 3 жыл бұрын
When we have to use %d ,and only %d.we are giving here two integers right then what is the difference
@mummadiamrutha8624
@mummadiamrutha8624 6 ай бұрын
%d is nothing but storage of variable and is used to print value in next line
@arjumandvillagelife
@arjumandvillagelife 3 жыл бұрын
wonderful👍👍 great🌷
@Pritamdas-bg7fp
@Pritamdas-bg7fp 6 жыл бұрын
good explanation....thank u sir
@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 :)
@priyanshigarg5728
@priyanshigarg5728 6 жыл бұрын
Sir,, What is the lifetime of a dynamically created variable???
@gramps717
@gramps717 2 жыл бұрын
very well explained goodddddd for uu
@md_daud
@md_daud 2 жыл бұрын
Thank you!!!
@anshulbaurai664
@anshulbaurai664 4 жыл бұрын
Great video
@mrnaveen6791
@mrnaveen6791 2 жыл бұрын
osm explanation....
@nitinchinmay260
@nitinchinmay260 3 жыл бұрын
i am getting an error which says '1d returned exit status'
@shubhampedhe874
@shubhampedhe874 3 жыл бұрын
what is difference in "%d/n" and "%d"?
@bzero7857
@bzero7857 2 жыл бұрын
%d is format specifier and is a newline character
@cringentertainment2605
@cringentertainment2605 4 жыл бұрын
Sir Please make Lecture on C++👏👏
@naveenkumar-zo1cj
@naveenkumar-zo1cj Жыл бұрын
Wonderful
@sreesen3159
@sreesen3159 Жыл бұрын
How to access the global variable in a function which has a variable of the same name as the global variable
@stephen9673
@stephen9673 3 жыл бұрын
My output was 4 and 4, not 4 and 3. Any explanation of why?
@tarikahmad4749
@tarikahmad4749 2 жыл бұрын
Where is the lec pdf? Anyone?
@kammaganisricharan5850
@kammaganisricharan5850 3 жыл бұрын
Tq sir 🙏🙏
@amarnath8733
@amarnath8733 3 жыл бұрын
1st and 2 nd videos are missing in playlist please add this videos in playlist
@md.mahaburrahmannadim233
@md.mahaburrahmannadim233 3 жыл бұрын
super content
@Vladimir93459
@Vladimir93459 3 жыл бұрын
Is it enough for placements ?
@clementnathanael3085
@clementnathanael3085 2 жыл бұрын
int main() { char var[] = "Neso Academy"; printf("%s is a god", var); return 0; }
@rakesh_007
@rakesh_007 4 жыл бұрын
Please put the captions
Variable Modifiers − Auto & Extern
12:52
Neso Academy
Рет қаралды 344 М.
Variable Modifiers − Static
19:02
Neso Academy
Рет қаралды 251 М.
Wall Rebound Challenge 🙈😱
00:34
Celine Dept
Рет қаралды 19 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 126 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 16 МЛН
Variable scopes w\ examples (Local vs Global vs Block vs Nested)
20:12
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 837 М.
Precedence and Associativity of Operators
16:27
Neso Academy
Рет қаралды 359 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 333 М.
Fundamental Data Types − Character
12:25
Neso Academy
Рет қаралды 351 М.
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,5 МЛН
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 598 М.
Call By Value & Call By Reference in C
8:34
Neso Academy
Рет қаралды 1,4 МЛН
Wall Rebound Challenge 🙈😱
00:34
Celine Dept
Рет қаралды 19 МЛН