Declaration vs. Definition of functions in C

  Рет қаралды 4,133

CodeVault

CodeVault

2 жыл бұрын

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 жыл бұрын
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 жыл бұрын
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 жыл бұрын
Very helpful thanks from Morocco
@danielsehnoutek2016
@danielsehnoutek2016 4 ай бұрын
great tutorial
@kapellimestari0078
@kapellimestari0078 2 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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 11 ай бұрын
@@CodeVault function specification => function declaration function body => function definition
Global variables in a multi-file project in C
8:42
CodeVault
Рет қаралды 16 М.
Arrays as function parameters in C
13:28
CodeVault
Рет қаралды 12 М.
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 71 МЛН
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 6 МЛН
Каха и суп
00:39
К-Media
Рет қаралды 6 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 31 МЛН
Sharing functions between files in C
9:00
CodeVault
Рет қаралды 28 М.
How to properly deal with dynamically allocated memory
13:44
CodeVault
Рет қаралды 9 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 289 М.
Redirecting standard output in C
15:39
CodeVault
Рет қаралды 89 М.
Difference between arrays and pointers in C
11:23
CodeVault
Рет қаралды 32 М.
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 383 М.
What are variadic functions (va_list) in C?
13:49
CodeVault
Рет қаралды 20 М.
Why are function pointers useful?
6:43
CodeVault
Рет қаралды 29 М.
Dereferencing in C
10:29
CodeVault
Рет қаралды 10 М.
What is a function prototype in C
4:38
Jacob Sorber
Рет қаралды 16 М.
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 71 МЛН