Declaration vs. Definition of a variable in C
HTML-код
- Опубликовано: 15 янв 2022
- Source code can be found here:
code-vault.net/lesson/6d7531s...
===== Support us through our store =====
code-vault.net/shop
===== Check out our website =====
code-vault.net
===== Check out our Discord server =====
discord.code-vault.net
Off-topic: Nice to see you back, you're the best C channel on the whole RUclips
Thanks!
I totally agree.
Came here not expecting much, but after watching the video I actually understand what I came here for. Very clear and to the point. Thank you!!
This guy contributed to my CS degree more than profs.
Happy to see you again!
Thankx man! You saved my life. I read multiple links but could't understand because all of them had different answers regarding these two terms.
Really good explanation, thank you!
It's Perfect video i've been looking for.. Thank you sooooo much!!
I am so happy to see you back. I think that your video series on C is the best on youtube. Your knowledge on C is the best compared to other youtube channels. What will your next videos be about? I am asking because I want to set my study contents according to that. I want to watch them all. Also, I want to thank you because you helped me a lot with my computer courses. You are a true hero :D
Thanks! I was thinking of having the next series be about object oriented programming (OOP) using C++. What do you think about that? Or would you like to see OOP in another, more modern, language?
@@CodeVault Well, since you have great knowledge in C, you probably have it also in C++. It would be really fun to learn C++ from you. I really like the way you teach, and I am sure many others think the same way. There are a lot of videos about OOP in modern languages like java and python. Those languages are a lot easier to learn, you can even learn them from websites. But when it comes to C or C++, it is nearly impossible to really comprehend what is really going on. You can't really understand the main thing by just reading it. I always end up in your videos when I need to look up at something about C. So I think C++ would be a nice topic for your next videos.
Superb video...from the title i thought it would be a mundane topic but i was able to learn new things....amazing work
that was very helpful thank u so much ♥
thank you that makes sense :)
very good presentation.
You deserve more views
Thank you for your explanation, Can I say Declaration = Describe & Definition = Allocate . I imagine Declaration like Authentication or point of check before allow something to allocate in memory
Yeah, that should be fine. It's just not quite correct when talking about functions
@@CodeVault Can you explain why?
from what I understood extern int x ; is a redeclaration of x that could exist inside the same file or in an other file ? but how a declaration of a variable looks like ? is int x ; inside main is a declaration or a definition ? int x ; outside main is a tentative definition and x will be initialize to 0 by default ?
int x; is both a definition and a declaration (both outside and inside)
extern int x; is a declaration without the definition
Don't mix up initialization with definition/declaration btw
@@CodeVault Yes, thank u for replying I get it now, please keep uploading your videos are ez to follow.
You are the C standard on utub