STATIC VARIABLE OR STATIC DATA MEMBER IN C++ -24
Vložit
- čas přidán 6. 02. 2017
- STATIC VARIABLE OR STATIC DATA MEMBER
In this video we will learn the Static Keyword in C++.
We will learn about Static Variables , their syntax and
Simple Program to understand the concept clearly.
We will see Difference between a Regular and a
Static Variable In C++ as well as Properties of Static Variable
Enjoy Learning.
Note :- "A C++ program can run successfully without a return statement (return 0) "
Mail: Aniproguy@gmail.com
Music:SUNDAY MORNING by Nicolai Heidlas Music / nicolai-heidlas
Creative Commons - Attribution 3.0 Unported- CC BY 3.0
creativecommons.org/licenses/b...
Music provided by Audio Library • Video
------------------------------------------------------------------------------------------------
Suggested Videos
Function Overloading (FUNCTION IN C++ - PART 4) :- • Function Overloading (...
Void or Generic Pointer in c++ :- • Void or Generic Pointe...
Variables and Data Types in C++ :- • Variables and Data Typ...
Data Type Range in C++ :- • Data Type Range in C++...
Comments in C++:- • Comments in C++ -7
Inline Function - FUNCTION IN C++ (PART - 3) :- • Inline Function - FUNC...
Function Overloading (FUNCTION IN C++ - PART 4)
• Function Overloading (...
Class and Objects(part-3)[VISIBILITY MODES IN C++] :- • Class and Objects(part...
Class and Objects[Most Important Video] Part-5 (Complex Number Program)
• Class and Objects[Most...
STATIC FUNCTIONS IN C++ :- • STATIC FUNCTIONS IN C+...
CONSTRUCTOR IN C++ ( SYNTAX AND PROGRAM AND ALL POSSIBLE ERRORS)
• CONSTRUCTOR IN C++ ( S...
STATIC VARIABLE OR STATIC DATA MEMBER IN C++ :- • STATIC VARIABLE OR STA...
Constructor Overloading in C++- :- • Constructor Overloadin...
I was not getting the concept the whole semister ....then thought to give up on this point ..but came across ur video ...i m now crystal clear with the concept....thanks❤️
how was your progress?
world needs teachers like you...!!! good
Thanks Vikranth for such a wonderful Comment.
Everything is Simple , I don't know why teacher made them look like hard
Made me understand in a Minute at which I was struck for a year. Thanks pal !
you did it so precisely and i cant thank enough for clearing my doubts. thanks a lot.
I love this videos so much they make me understand C++ better!
In C++ , A Program can Run Successfully when int main() is left without a return value (return 0). Don't get confused :-) Newbie in Programming doesn't know this concept
InstaBlaster
These 5minutes helped me more than my teacher to whom I paid in thousands! Thank you :)
Under-rated channel ,hope this channel gets a lot of recognization
Without saying any single word you are teaching us very well👏
Thanks Jeel for watching my videos
I hope you'll like to share my channel with your friends :-)
Keep on watching Jeel
Very simple and to the point explanation. Good job 🫡
Best teaching method ,i have specially login to my gmail to comment and like,and i am amazed why not people watch a briliant videos
Smoothly you explained the whole concept
Thanks for the video! Nice and clear! Keep up the good work
The most creative video I ever came across 🙏
Off course, this video deserves LIKE, great explanation
Very good quality content! Thank You!!
Thank you very much, explained very proffesionally and funny!
Explanation method very nice.
one of the coolest tutorial man.
Really great explanation. Very easy to understand
Perfect, thank you very much stranger! :)
Oh my God the man best explain ever ❤️💙💙😍😍🤩🤩
Amazing work 🥰....thaks a lot bcos it helped me a lot
that was amazing !!!! thank you so much
Nice way to explaning...C++....👍👍
Have you seen Codearchery.com teaser?
czcams.com/video/cqLdlBaohLU/video.html
Did you like it ?
This video helped Me a lot......thanks
Wow dude you are osm this is the best technique to delever your content like in the cartoon format that's why this is very impressive keep your work dude
Even you inspired me now on I'm gonna make this type of graphics in my videos too
U r osm dude
I'm very thankful to you by the very bottom of my 💓
We love you.. always
continue making videos it will help a lot
Awesome video sir your learning trick is very good ☺
keep it up
best way of explaning
Thanks a lot Siddharth Kshirsagar. Keep on Commenting and Watching my videos. Plz Share this among your friends :-)
very well explained. concept
Ur video so amazing!
that was helpful , thank you
Aweosme❤❤
Thank you!!!!
best video fully understand without voice
like it and love it !!! plz continues plz
Thanks heng for watching my videos. Yeah ! I will continue making more videos. If u want me to make a video on any topic just comment on any of my video :-)
Keep on Learning :-)
thank you so much.
YOU GOT TO HAVE A MILLION SUBs
Rude one... 😂😂 couldn't get better.. Good job dude
Just awesome, bravo
Thanks a lot saif
I hope You'll like to Help this channel by sharing it with your friends
Keep on watching and Keep on Learning Cool stuff :-)
I LIKE YOU ......
YOU ARE VERY GOOD DRAWING ...............
YOU HAVE VERY HAPPY FUNNY TO FIND INTERESTING TO LEARN ..............
THE MOST IMPORTANT HOW TO TEACH THE EASY WAY TO STUDY ...THE MOST SIMPLE BUT FUNDAMENTALS ....... PLATFORM
Would the functionality of a static variable be the same of a global one? Could I use a global function as my counter?
thanks a ton
It is informative video
Amazing 👏 🙀 😯
good effort ice teaching
Helpful one!!
Thanks Hrithik for watching my videos
Keep on watching and help me by sharing my channel
As you can see I don't have much subscribers
osthir✌✌✌
super explanation
Thankyou thanku so much 😭😭
super thanks alot
great video
u great sir
great video...
Better to watch in 2x speed....
Here's a question, and I hope I am not jumping ahead too far. If I have a class for parking spaces and need to count them each time a space is rented. This needs to be available to other functions in my class, and to the main(). Should this static variable 'count' be private in the class with other variables, or public so it can be accessed by anyone? Would I have to put it in the Global space so it is available outside the class ( to the function main() )?
Where was this channel for so many years woowwwww
Superb explaination..... please do videos for java also
Thanks
nice video
could you say count = count++; to make the general variable actually incremement in main?
00:01:35 cout
THE BEST THING ON THE INTERNET MUCH APPRECIATION!
Omg really awesome
Thanks Chetan
Have you seen Codearchery.com teaser?
czcams.com/video/cqLdlBaohLU/video.html
Did you like it ?
Sir aap but ache se concept clear krwa the ho. Please c++ ke sare concept people video bnaye.
MAIN IDEAS OF STATIC OF C++ ? FOR ALL STUDENTS NOT ONLY FOR SMART STUDENTS ONLY .............
MAKE SURE EVERY STUDENTS UNDERSTAND IN THE CLASS .................
THE GOOD TEACHER IS THE ONE WHO DELIVER TO FIND THE BETTER WAY FOR ALL STUDENTS UNDERSTAND .............
Nice awesome video 😋buh...in video for general variable after initialising count to 0, it increments to 1 and again becomes 0 after end of the block, y does that happen?😅
Dynisha Abreu i too hav that doubt!!
Thanx
i use the compiler GCC 5.1.0, when i write :
int x;
cout
sir your video is best for it student
point to point concept is cleared but sir we need more language like java ,data structure ,database so plzzz upload it as soon as possible
Hi sajal karn , thanks for Watching my videos and thanks for Commenting.
I am going to upload videos on Data Structures soon. The Problem in uploading videos on lot of programming languages is time needed to make these videos. I have to spent 3 hrs for 5 min video , but I will try my best to upload as much videos as i can.
Keep on learning and Please Share my videos so that they can help others too :-)
Learn Programming In Animated Way and I always obey
:-)
Best sir
Keep it up
Thanks a lot prashant
Have you seen Codearchery.com teaser?
czcams.com/video/cqLdlBaohLU/video.html
Did you like it ?
THANK YOU CODEARCHERY .............
THANK YOU CZcams ....................................
thnks bro it is very help full to me . bro pls tell me is it like global variable in Python
Why do you have such low number of subscribers????.....you deserve to possess at least 1M.......
what will happen if we created that regular variable in the heap?
Ohhh bete ki jaaann!!
keep up the great work!!!
Hey Thanks a lot friend :-) for watching my video and for this comment :-)
I like your Username "Hello World "
Keep on Learning and Keep on Watching
I've never came across an explanation as good it is in ur vids!!
But i have a doubt when u type
cout
No, this is a syntax for Post fix i.e this syntax uses then changes the value. What output you expect is for ++Count;
I cant get garbage value when i remove static it gives the same 0 1 2.....why so?
general variable after end of programs does not change, it become zero after running :int counter=0;
i need help in programming how we can communicate by other media
what if static variable is used inside a class?do we need to intialize it to 0?
No even In class we don't need to initialize it to zero
Watch My Video on Virtual Function , You will Understand it :-)
As You can see My Subscribers are very less in spite of lot's of Good Work
Plz help me in growing my channel
Share My Channel on Social Media and with your Friends too :-)
I hope you'll like to help this channel
Keep on Watching and Keep on Learning
For sure bro....
Why man why??
U r soooooo much cute. All these above is extraordinary. Anyway take LUV
Sir iam Sampath. What is the use of static variable
ooooooooopppp
is data member and variable are actually same thing?
i am not assigned any value to non-static variable,let it be assigned with some garbage value.
while i am running the code getting out put in increment order as 0,1,2.
Please make videos on python
was a good video but watching this i felt like a nursery class child XD
how diifer static and global variable in c?
I understand this concept, and I understand that with a static variable, but why exactly do we get 0 0 0 output
MR. LAYER it counts up to 1 at the end of the function, but when it returns to main that information gets tossed out. If you noticed it wasn’t even 0 until he set it to 0. It was just a bunch of random numbers. When it’s static that value is initialize to 0 and whatever is stored in the variable stays even after exiting the function. So each time the loop calls that function the value is incremented up when it’s static. When it’s a regular variable the value stored is reset every time the function returns to main.
WHAT DO YOU MEAN BLOCK ? I BLOCK IS BELONG TO THE PROGRAM AND BLOCK IS ONE PART SMALLER THAN PROGRAM IF SO FIT WHERE IN THE PROGRAM ............. OR BLOCK IS OUTSIDE THE MAIN PROGRAM OR WHERE IS THE BLOCK ?
DON'T FORGET YOU HAVE TO WRITE WHAT'S STATIC MEANS IN C++
WHAT'S FUNCTION OR ACTION OR IS IT THE NAME OF CLASS OR SOMETHING AS YOU GIVE OUT DEFINITION OF STATIC FIRST ?
nice one.
may you grow.
Just improve the grammar :D
shut up about grammar dude
it takes a lot of hard work to make these videos
and you still complain
typical indian behavior
@Sunny shah damn you are triggered really easily xD let him critic my friend.....it just helps improving ^^(as long as he doesn't get rude^^
Why don't you do voice over it will become more perfect (anime+voice= highly understandable)
WHAT'S THE DIFFERENCE BETWEEN BLOCK AND THE PROGRAM ..............
How to define a static variable in a class?
for normal datatype it shows same result 0 1 2
how.....?
why did u stop making videos😢
Check your spelling. Otherwise, good video.