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

Комментарии • 24

  • @189Blake
    @189Blake 2 года назад +21

    Off-topic: Nice to see you back, you're the best C channel on the whole RUclips

  • @carriersignal
    @carriersignal 2 года назад +6

    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!!

  • @meh....9661
    @meh....9661 8 месяцев назад

    This guy contributed to my CS degree more than profs.

  • @omerozdemir1
    @omerozdemir1 2 года назад +1

    Happy to see you again!

  • @biswajit07
    @biswajit07 10 месяцев назад

    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.

  • @Ridful
    @Ridful Год назад

    Really good explanation, thank you!

  • @onesome7713
    @onesome7713 Год назад

    It's Perfect video i've been looking for.. Thank you sooooo much!!

  • @wintersol9921
    @wintersol9921 2 года назад +4

    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

    • @CodeVault
      @CodeVault  2 года назад +3

      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?

    • @wintersol9921
      @wintersol9921 2 года назад +3

      @@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.

  • @MohammedMustafa-sx3jf
    @MohammedMustafa-sx3jf 2 года назад

    Superb video...from the title i thought it would be a mundane topic but i was able to learn new things....amazing work

  • @cyrilcycadiou9962
    @cyrilcycadiou9962 5 месяцев назад

    that was very helpful thank u so much ♥

  • @ruruanimations
    @ruruanimations Месяц назад

    thank you that makes sense :)

  • @dimitrioskalfakis
    @dimitrioskalfakis Год назад

    very good presentation.

  • @nipundileep1577
    @nipundileep1577 2 года назад +1

    You deserve more views

  • @user-pm4ng4wf8d
    @user-pm4ng4wf8d Год назад +1

    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

    • @CodeVault
      @CodeVault  Год назад +1

      Yeah, that should be fine. It's just not quite correct when talking about functions

    • @manuelmigoya2109
      @manuelmigoya2109 Год назад

      @@CodeVault Can you explain why?

  • @justcurious1940
    @justcurious1940 9 месяцев назад

    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 ?

    • @CodeVault
      @CodeVault  9 месяцев назад +1

      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

    • @justcurious1940
      @justcurious1940 9 месяцев назад

      @@CodeVault Yes, thank u for replying I get it now, please keep uploading your videos are ez to follow.

  • @DXenakis
    @DXenakis Год назад

    You are the C standard on utub