Declaration vs. Definition of functions in C

Поделиться
HTML-код
  • Опубликовано: 16 янв 2022
  • Source code can be found here:
    code-vault.net/lesson/jafexja...
    ===== 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

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

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

    Thank you for continuing to post high quality and easy to follow C lessons. It is not the most popular language but it needs to be made more accessible.

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

    Good to see you back!

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

    Thanks, pls keep posting ☺️

  • @craigkinney853
    @craigkinney853 2 года назад

    Thanks buddy. I get udemy courses through my work for C programming and still have to come back to your channel to understand what other people are tryin to teach.

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

    Very helpful thanks from Morocco

  • @danielsehnoutek2016
    @danielsehnoutek2016 2 месяца назад

    great tutorial

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

    so good...

  • @vilijanac
    @vilijanac 2 года назад

    print_val is defined and declared, and can work with defined variables.

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

      It can work with declared global variables too

  • @beyreda6029
    @beyreda6029 2 года назад

    Thank you for this very instructive video. By the way, are you sur that multiple declarations are ok in all situations? If I try this with GCC with no external linkage I get an error: redeclaration of ‘a’ with no linkage

    • @beyreda6029
      @beyreda6029 2 года назад

      It seems that redeclaration only works with global variables.

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

      Yeah, it's only a feature in GCC that allows you to redeclare multiple global variables

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

    Tell us now, why you shouldn't use the include directive. Happy New Year.

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

      In a later video I will (probably this week)

  • @noweare1
    @noweare1 2 года назад

    I always get those two mixed up define vs declare

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

      Trust me, I mixed them up too. Had so many outtakes where I said definition instead of declaration. We should really think of better names for these concepts haha

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

      @@CodeVault function specification => function declaration
      function body => function definition