C Programming Tutorial 92 - Creating Void Functions

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


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

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

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

'The factorial of 8 is...'
*Brain* - 'Ah man I can't be bothered with that'
Lol

LimeWitness
Автор

you're the best youtuber, i've been watching your videos for like 3 weeks now and I already learned a lot. thank you!😁

eliofeghali
Автор

This literally helps so much. It's been bothering me so much. I just didn't get the difference between the two, and why we would chose one over the other. Its been bothering me for a week and you answered my question within a few seconds lol. Thank you dude.

pandulce
Автор

Caleb, you're a good dude for these tutorials.

thedoctorate
Автор

Without a solid foundation (such as one which could be gained from following this tutorial series), trying to program might be...null and void 😎

PunmasterSTP
Автор

dude thank you so much for these videos! You're an amazing teacher!

gpetty
Автор

Great job man, keep working like that!!! You should be a professor with a voice a like that.Keep inspiring our youth.

fastlane_bros
Автор

i have a solution to
instead of telling that the method factorial() returns an int it would be safer to use long since we are dealing with factorials
program-
#include<stdio.h>
long factorial(int num);
void printFactorial(int input);
long factorial(int num)
{
long fact = 1;
for(int i = num; i >= 1; i--)
{
fact = fact * i;
}
return fact;
}
void printFactorial(int input)
{
printf("The factorial of %d is %ld", input, factorial(input));
}
void main()
{
printf("Enter the number of elements in the factorial table:");
int x;
scanf("%d", &x);
for(int i = 0; i < (x+1); i++)
{
printFactorial(i);
printf("\n");
}
}

hope it helps! : )

samarthvs
Автор

Caleb: "You can call a function in a function. That is fine."
Me: "I know! Main is a function! Isn't it? :-)"

oglothenerd
Автор

How do void functions work in a payroll program? For example, I am stuck on an assignment where void clockIn(int payPeriod, Employee& currEmployee);

yymike
Автор

Help getting sum of AP series in a void function...😫

kabellamajid
Автор

can we use if else in void function?... i'll try its only work void loop(){
}

but not work i create void (){}

buddikadinesh
Автор

What's that IDE? looks really nice

darkeriossss
Автор

if you ever need spare body parts, hit me up, cuz i owe you

jadoaesra
Автор

And I thought I needed college to learn C...

mynameisearlb