Global functions in multi-file projects in C

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

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

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

    Glad to see you back!

  • @parrotparrot1948
    @parrotparrot1948 2 года назад +2

    You earned yourself a subscriber :)

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

    @ Codevault
    Your videos are helped me alot to get concept more understandable can you pls explain what is difference in C structure and C++ structure

  • @user-wc9gs6te3w
    @user-wc9gs6te3w Год назад

    Thank u!!!!!

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

    Amazing

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

    very good

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

    can you explain when we write a function definition in a .h file, even after using header guards why do we use the "inline" keyword?

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

      Sure, I'll make a video on that

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

      @@CodeVault thanks! appreciate it.

  • @moatazahmed2771
    @moatazahmed2771 6 месяцев назад

    Thank you👌, how can I make the run button run the whole program or files in my project instead of typing each of them in VS code?
    It works in Code Blocks IDE but I can't do it in VS code!

    • @CodeVault
      @CodeVault  4 месяца назад

      There is a video on this topic that you can find here: code-vault.net/lesson/ublnbln8uf:1603733528013

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

    it means that we need to write .h file fot each .c file?

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

    Is it new series tutorials?

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

      Yea with just a few videos on it

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

    why do we need global.c for implementation ? cant we write in global.h itself ?

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

      No. If you do that and include global.h in multiple C files of the same compilation you'll receive an error due to the definition of the function being found twice in that same compile. So, you have to somehow prevent that. This is one way of doing it