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
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.
Good to see you back!
Thanks, pls keep posting ☺️
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.
Very helpful thanks from Morocco
great tutorial
so good...
print_val is defined and declared, and can work with defined variables.
It can work with declared global variables too
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
It seems that redeclaration only works with global variables.
Yeah, it's only a feature in GCC that allows you to redeclare multiple global variables
Tell us now, why you shouldn't use the include directive. Happy New Year.
In a later video I will (probably this week)
I always get those two mixed up define vs declare
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
@@CodeVault function specification => function declaration
function body => function definition