C Programming Tutorial 90 - How to Create a Function (Functions Part 1)

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

your course is so much better than one I bought on Udemy. Thank you for the free content!

galdutro
Автор

I love the beat at the end of the video and thanks for making my coding life easy

greyadamz
Автор

thank you sir, its help me so much, i had problem in function, i dont know how to use it, after i watch this video, its help me and i can create a login menu with functions, thank you sir, i from indonesia :).

anagaming
Автор

thanks ur video made the concepts clear for me

ranianoor
Автор

I really enjoy your videos, they're so thank you truly. I reference your material for others to check out :-)

LilySteph
Автор

Factorial 0 is 1, and there isn't factorial of negative numbers, hence:

int factorial(int number)
{
if(number == 0)
{
return 1;
}
else if(number < 0)
{
return 0;
}

for(int i = number - 1; i > 1; i--)
{
number *= i;
}
return number;
}

Can I make something to improve it?

tiagodmota
Автор

But how do you create an si to create it's own functions?

Fir example even when you read data from a file it still isnt placed innthe function definition area uf code...so far I've found to conceive this the heap has to be used...

ambientsoda
Автор

my grandma says "he types codes and stuff on that computer" and "so you type in codes and it does stuff"

xhjbever
Автор

hi..i'm new here and i m making a research on how i can write a program for (development Of FCI Social Network System using algorithm) a topic like this..

paulinuskambala
Автор

There's actually a better to make a factorial function. You don't need a factorial = 1 to do that.

thsdsyt
Автор

Closure? More like fo sho...that these are amazing videos!

PunmasterSTP