Global functions in multi-file projects in C

  Рет қаралды 8,063

CodeVault

CodeVault

2 жыл бұрын

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 жыл бұрын
You earned yourself a subscriber :)
@user-wc9gs6te3w
@user-wc9gs6te3w Жыл бұрын
Thank u!!!!!
@soufianeamimi
@soufianeamimi 2 жыл бұрын
Amazing
@inferrno52
@inferrno52 2 жыл бұрын
very good
@ramakrishna4092
@ramakrishna4092 2 жыл бұрын
@ 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
@CodeVault
@CodeVault 2 жыл бұрын
I'll look into it
@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 жыл бұрын
Sure, I'll make a video on that
@k_ushagra
@k_ushagra 2 жыл бұрын
@@CodeVault thanks! appreciate it.
@moatazahmed2771
@moatazahmed2771 8 ай бұрын
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 6 ай бұрын
There is a video on this topic that you can find here: code-vault.net/lesson/ublnbln8uf:1603733528013
@aicoding2010
@aicoding2010 3 ай бұрын
it means that we need to write .h file fot each .c file?
@CodeVault
@CodeVault 3 ай бұрын
Usually, yes
@kannaiyand2707
@kannaiyand2707 Жыл бұрын
why do we need global.c for implementation ? cant we write in global.h itself ?
@CodeVault
@CodeVault Жыл бұрын
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
@arunbm123
@arunbm123 2 жыл бұрын
Is it new series tutorials?
@CodeVault
@CodeVault 2 жыл бұрын
Yea with just a few videos on it
Post-increment vs pre-increment in C (a++ vs ++a)
5:54
CodeVault
Рет қаралды 15 М.
What are variadic functions (va_list) in C?
13:49
CodeVault
Рет қаралды 20 М.
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 42 МЛН
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 108 МЛН
Global variables in a multi-file project in C
8:42
CodeVault
Рет қаралды 16 М.
The Most Useless Keyword in C?
10:26
Jacob Sorber
Рет қаралды 68 М.
Sharing functions between files in C
9:00
CodeVault
Рет қаралды 28 М.
What does fork() actually return?
7:13
CodeVault
Рет қаралды 4,2 М.
Function-like Macros | C Programming Tutorial
24:12
Portfolio Courses
Рет қаралды 18 М.
why do header files even exist?
10:53
Low Level Learning
Рет қаралды 384 М.
Header files and libraries (Kevin Lynch)
9:32
Northwestern Robotics
Рет қаралды 94 М.
How I use C++: a line-by-line code review
1:40:40
strager
Рет қаралды 247 М.
What are void pointers in C?
10:05
CodeVault
Рет қаралды 29 М.
Global Variables in C++... not as easy as it seems
18:25
The Cherno
Рет қаралды 61 М.