haha i messed up a bit im usally smarter than that but i wasnt looking where i was going anyways i put the money sign $ instead of the percent sign % on 2 of them and after trying to run it it would only let me run a number but then it would pull up random numbers after a few seconds of looking through all of the numbers and systems i found out what the mistake was and replaced it with the right symbol and fa la la la it was running smoothly :D THANKS FOR TEACHING US BUCKY!!!
@bondservant4Him prototypes are necessary when you want to use a function before you define it. This is also necessary when you split functions into headers and actual .c implementation files. (<- really helpful to do that)
int main (void) { int x; int y; printf("What are the lengths of the sides? \n"); scanf("%d%d", &x, &y); printf("The rectangular area is %d square units. ", findarea(x, y)); return 0;
}
... and it worked perfectly. Is there a particular reason for defining int one; instead of int x; ?
Awesome! its been 2 months i am banging my head into books, surfing the net, asking those who claim to know functions but none was helpful.. atleast i have something to look upon! thanks! :)
@redcodeful it tells your computer that it ended normally and it didn't crash when it closed. If it does crash it will tell you though, It also helps with debugging sometimes. oh and don't use int main(void) just use int main(), It is only for special computers and will screw up some more advanced stuff, the void one will. int main is how it's supposed to be.
K idk if he will explain this later, so I figured id just ask now. I was experimenting with functions and I tried to make a program that checks to see if you are above a certain age. I used an if else statement in the function, when I realized I didn't know how to use what the function returns in anything other than a print statement... help plz!
I can never remember when a function requires the address of operator when passing a variable and when it doesn't. Here scanf requires it but the findarea doesn't.
@321boileranimal if I want to multiply to numbers. but the terminal operator enters a letter, I want it to send an error message that prompts the operator again, in a do while loop. How ever once I put in the conditions for letters, to cause the loop. The loop goes on and on and doesn't stop
@321boileranimal i think you will need to use some kind of if else statement with the boundaries of your user input being between 0 and 9 anything else they will have to reinput, you can send me your code if you want me to look at it im curious myself
@321boileranimal if I want to multiply to numbers. but the terminal operator enters a letter, I want it to send an error message that prompts the operator again, in a do while loop. How ever once I put in the conditions for letters, to cause the loop. The loop goes on and on and doesn't stop
@NondrinkableCake you could also use void main() and then you dont have to return anything, but its not recommended because some compilers dont handle this correctly
this guy ROCKSSSSSS :D thanks man because of you i regained hope in life, u were the fainting light i saw in in my dark programing lecture room, i followed the light nd i have LEARNT :D
i only understand this because i learned C with your tutorials, then learned python with your tutorials and used it in an object oriented setting, then i came back and am learning C again and FINALLY get it lol.
could you also have said in the function " x * y= area then return area? but if you do that does that mean you must declare area as an int in the function?>
@kildas (void) specifies the data type for the function. It means that no data is returned to the main program, if it's integer then a whole number is returned, etc. Hope that helps! =)
Thank you so much for this.XD My book sucks at explaining this. And, I had been stuck on functions for quite a while. And then, you made it simple, lolol.
When you are using an int before the function name, that means the function needs to return a value. He is just returning 0 to return some sort of value.
Also, it is to make it more clear of course, but on the 4th line it is not necessary to identify the integers x and y yet, just findarea(int, int) is OK, as long as you identify them in the function later on. Maybe this gives some people more clarity of what the computer is actually doing.
I have just turned 11 September *NO JOKE* and i have almost finished watching all his videos (haven't seen the Adobe After Effects and 3ds Max tuts, YET), AND have been actually typing the code. So HA HA HA...
I've been reading my bloody C book for hours and i didn get a thing. I just watched this video and got the whole concept in 8.07 minutes. Thanks dude, you're a life saver.
cant you just set findarea(one,two) to some variable like z for example so that you don't have to type that function in every time u want to use it???.
@jimmy5420 Well sometimes all you need is the extra getchar() because sometimes the program opens and buffers the first one so you need the second one there just in case.
@whyzeguy Every video I hear him say that I just crack up. Haha I know it's coming, and when it finally get's there im like yes!!!!!! its like his catch phrase like bart simpsons "eat my shorts" or gary colemans "Whatchoo talking 'bout willis?"
@kkacper9 It returns from the main function with a value of zero. A value zero is a default value. If it were to just return with no value, then it might return any crazy value which isnt wanted.
Good video. Very helpful. However, I noticed your compiler is very slow. You should use a program called Code Blocks. It compiles programs really fast and has colours for different things. Try it, its very good.
yes i know that. What I meant was that the program "code blocks" is used for C programming. It has a built in compiler that compiles faster than the compiler in his program.
These videos are great! very concise! In an hour of watching and programming along I have effectively reviewed a month's worth of material for my electrical engineering test. although in order to do well on the test I will still need to do lots of practice problem solving.
great videos man, i've so much more from these videos than my professor :P do you base these tutorials from the C Programming book by Brian Kernighan?
of course you could do that more simply but the point of the tutorial is to teach someone how to make functions so that when you have more complicated tasks you can write the necessary functions.
Dude, stop coughing, it is annoying as hell. Just grab Audacity or any other free audio editor to edit the audio of the video, so the cough is out of the track and then add it to the video with VirtualDub.
Global variables are discouraged practice. Going the pointer router would work, if you didnt mind losing variable scope. Really just depends on the job.
i think the point of the video is to illustrate how a main function calls on another function and retrieves the data. There's another video on pointers.
So, yes - obviously there are better ways to do it, but that's not the purpose of the video.
This is wrong. You should have two new variables in your called function. Have them perform an algebraic expression, assign the answer to that expression to a new variable, then return that variable. The way you've done it works but will mess you up when you try to do anything really useful with your routine.
im gunna bild skynet w deez twotorials
delerium2k 2 weeks ago
haha i messed up a bit im usally smarter than that but i wasnt looking where i was going anyways i put the money sign $ instead of the percent sign % on 2 of them and after trying to run it it would only let me run a number but then it would pull up random numbers after a few seconds of looking through all of the numbers and systems i found out what the mistake was and replaced it with the right symbol and fa la la la it was running smoothly :D THANKS FOR TEACHING US BUCKY!!!
MaxOp1234 1 month ago
ive noticed that about 1-2 mins into ur videos u always cough once and mention u got whooping cough :D
hgfjyrdetryu 1 month ago in playlist C Programming Tutorials
How come when I leave out the: "int findarea(int x, int y);" part to the top it still works?
Is the prototype necessary?
Magik360 1 month ago
@Magik360 thats weird It shouldnt lol
bondservant4Him 1 month ago
@bondservant4Him prototypes are necessary when you want to use a function before you define it. This is also necessary when you split functions into headers and actual .c implementation files. (<- really helpful to do that)
MrShyguy0 1 month ago
I tried...
int main (void) { int x; int y; printf("What are the lengths of the sides? \n"); scanf("%d%d", &x, &y); printf("The rectangular area is %d square units. ", findarea(x, y)); return 0;
}
... and it worked perfectly. Is there a particular reason for defining int one; instead of int x; ?
intelliGENeration 2 months ago
Honestly mate you're an absolute God. Nice one
sherriff93 2 months ago
Very helpfull thanks a bunch
morphine4mysoul 2 months ago
A very useful video for us beginners! XD
seventysoul 2 months ago
Grinding my way through this chapter on functions and spent the time to watch this video. Now I'm burning through the topic.
Zephemus 3 months ago
Awesome! its been 2 months i am banging my head into books, surfing the net, asking those who claim to know functions but none was helpful.. atleast i have something to look upon! thanks! :)
harisewak1 3 months ago
"In your parameters you have to GOUHOU%&^%^&%&^%&^ sorry about that"
Lol'd At this part XD
Thanks for the tutorial , very helpful :).
Lavridi 3 months ago
whats the purpose of return 0 ?
redcodeful 3 months ago
@redcodeful it tells your computer that it ended normally and it didn't crash when it closed. If it does crash it will tell you though, It also helps with debugging sometimes. oh and don't use int main(void) just use int main(), It is only for special computers and will screw up some more advanced stuff, the void one will. int main is how it's supposed to be.
RetroCopS 2 months ago
@RetroCopS int main (void) is the correct way actually, VOID main is the wrong one
bondservant4Him 2 months ago
@bondservant4Him Thanks but what is the void inclosed in braces or whatever ()'s called :P
RetroCopS 2 months ago
@RetroCopS int main(void) just means that main takes no arguments, where as int main() is not wrong however it has an unknown number of arguments
bondservant4Him 2 months ago
thank you very much sir, this helps me a lot, Function is the coverage of our Departmental Test this coming Oct 19 then after that sembreak :D.
tedkenneth14344 3 months ago
lmao u always got whooping cough man!
Kirch21x 3 months ago
What program do you use to compile?
defiantHipHop 3 months ago
@defiantHipHop He is using dev c++ i believe
jiggi31 3 months ago
K idk if he will explain this later, so I figured id just ask now. I was experimenting with functions and I tried to make a program that checks to see if you are above a certain age. I used an if else statement in the function, when I realized I didn't know how to use what the function returns in anything other than a print statement... help plz!
Xenocide007 4 months ago
@Xenocide007 you need a return type in your function, Message me your code and ill help you out
bondservant4Him 4 months ago
into to functions lol
jdatabean 5 months ago
man you are the best...even the beybi can understand :))))
ByDef4ult 5 months ago
char like charizard? chAr...acter...
Naytd099 5 months ago
can you make the variables x and one have the same name? just call them both one or x? it seems kind of pointless making another variable.
cookiesRgood26 5 months ago
@cookiesRgood26 yes you could but its best to use different names unless it is a simple program like this
bondservant4Him 5 months ago
I can never remember when a function requires the address of operator when passing a variable and when it doesn't. Here scanf requires it but the findarea doesn't.
spunright 6 months ago
@spunright the ampersand is only when you are storing something in that address or when you are passing the address.
bondservant4Him 6 months ago
Can't type and think at the same time. LOL! Your head is running on a serial...
zarakikenpa05 6 months ago
Very good tutorial. Thanks.
WinXPproff 6 months ago
how do you make this multiplication loop if someone enters a letter been trying to figure it out for like 2 weeks
321boileranimal 7 months ago
@321boileranimal what do you mean if someone enters a letter?
bondservant4Him 7 months ago
@bondservant4Him
@321boileranimal if I want to multiply to numbers. but the terminal operator enters a letter, I want it to send an error message that prompts the operator again, in a do while loop. How ever once I put in the conditions for letters, to cause the loop. The loop goes on and on and doesn't stop
321boileranimal 7 months ago
@321boileranimal i think you will need to use some kind of if else statement with the boundaries of your user input being between 0 and 9 anything else they will have to reinput, you can send me your code if you want me to look at it im curious myself
bondservant4Him 7 months ago
@bondservant4Him I'll show you what I have, I'm in a introductin to programming with C++ class let me pull up the text
321boileranimal 7 months ago
@321boileranimal if I want to multiply to numbers. but the terminal operator enters a letter, I want it to send an error message that prompts the operator again, in a do while loop. How ever once I put in the conditions for letters, to cause the loop. The loop goes on and on and doesn't stop
321boileranimal 7 months ago
Do you mean "Intro"?
kostantinos74757 7 months ago
What does the "return 0"-thing in the main function do?
NondrinkableCake 8 months ago
@NondrinkableCake ends the program
bondservant4Him 8 months ago
@bondservant4Him Doesn't the program end itself? Why is it needed?
NondrinkableCake 8 months ago
@NondrinkableCake its needed because main is a function itself and its data type is an int thus it has to return and integer
bondservant4Him 8 months ago
@NondrinkableCake you could also use void main() and then you dont have to return anything, but its not recommended because some compilers dont handle this correctly
myschoo 8 months ago
@NondrinkableCake return 0 doesn't return anything.
0u73rh34v3n 7 months ago
It's so clear explanation . Thanks
alialsaddi 8 months ago
Wow that was really cool!
liamwazhere 8 months ago
this guy ROCKSSSSSS :D thanks man because of you i regained hope in life, u were the fainting light i saw in in my dark programing lecture room, i followed the light nd i have LEARNT :D
GOD BLESS YOU SON.
angelkl27 9 months ago
i only understand this because i learned C with your tutorials, then learned python with your tutorials and used it in an object oriented setting, then i came back and am learning C again and FINALLY get it lol.
Thanks loads man.
asfadasfa1234 9 months ago
This tutorial is approximately 12 times easier than those I have in school :D
Thanks!
theral056 10 months ago 15
could you also have said in the function " x * y= area then return area? but if you do that does that mean you must declare area as an int in the function?>
bondservant4Him 10 months ago
in2 2 functions
NeigborhoodBoards 10 months ago
what does conio.h means? and what is it for?
MrKyte12 10 months ago
what it mean:
int function_name (void);
What does that (void) mean?
kildas 10 months ago
@kildas (void) specifies the data type for the function. It means that no data is returned to the main program, if it's integer then a whole number is returned, etc. Hope that helps! =)
starcubeuk 10 months ago
My output is 13761456;Why ?
lordofkrunsull 10 months ago
Thank you so much for this.XD My book sucks at explaining this. And, I had been stuck on functions for quite a while. And then, you made it simple, lolol.
itsdefinitelyaustin 11 months ago
can you put the definition function of findarea b4 int main?
TrancendedTora 1 year ago
Someone should make a montage of all the times he does the wooping cough.
Mexicouger 1 year ago 2
This has been flagged as spam show
youtube.com/watch?v=TROnlvorhDs programming will be easy in the future.
supermatti78 1 year ago
great job man .so helpful..
mustapha615 1 year ago
there is one thing common in all yur videos..sorry i got whooping cough..:Dlol
hotvampire1992 1 year ago
Great tutorials. One thing though, you didn't explain the purpose of "return 0;".
tapewobble 1 year ago 33
@tapewobble
When you are using an int before the function name, that means the function needs to return a value. He is just returning 0 to return some sort of value.
Mexicouger 1 year ago
@tapewobble yo, it returns 0, as this is a void in the main function, so it doesnt return anything
foosta5 8 months ago in playlist C Programming Tutorials
@tapewobble hey dumbass, he explained it in one of his first vids. -.-'
TheMedic1231 4 months ago
@TheMedic1231 No actually he didn't . He just added it in this video. Learn to read and see. DUMBASS
PH5221 4 months ago
@PH5221 he did say in one of his tutorials what the return 0; meant, i know cause i actually WATCHED his tutorials... xDDD
TheMedic1231 4 months ago
killer programmer!
pippoMASO 1 year ago
In functions, what does "return via the function's name" means? I saw that on my exam, and I didn't really know what it meant.
shadowfrost91 1 year ago
is it possible to create a switch case function within a function?
Jadandlud 1 year ago
great tutorials man , please i beg you , make more , i need them to study for my college :)
you helped me a lot , you're a great teacher , keep up the good work !
IanasAlexandruCornel 1 year ago
what the hack you talking about :)
nawaz5khanbm 1 year ago
Also, it is to make it more clear of course, but on the 4th line it is not necessary to identify the integers x and y yet, just findarea(int, int) is OK, as long as you identify them in the function later on. Maybe this gives some people more clarity of what the computer is actually doing.
kraeckelium 1 year ago
@Auroraa94
Cool, so can you explain me how pointers work then?
kraeckelium 1 year ago
@TheDgdsmaster : rofl! :D
SadsJava 1 year ago
great work ,you made it all at one go ,thank you for your video, great help
coolzorex 1 year ago
This has been flagged as spam show
I have just turned 11 September *NO JOKE* and i have almost finished watching all his videos (haven't seen the Adobe After Effects and 3ds Max tuts, YET), AND have been actually typing the code. So HA HA HA...
Anyway great vid bucky!
theMacBoy11 1 year ago
Comment removed
theMacBoy11 1 year ago
where is the source code??
manutube8080 1 year ago
I'm a very young person learning how to program. Let's say I'm not 16 yet.
MiniIsaacACE 1 year ago
@MiniIsaacACE fuck!! im 14 u idiot!! and i completed even c++..
SidTitus 1 year ago
you spelled intro wrong in the title of the video :) but this video was super helpful thanks
yayapex2 1 year ago
@1:34 looool.....give your name a function?
electricalbah 1 year ago
i didn't write int findarea(int x, int y); on 4th line and it worked.
iferio 1 year ago
Comment removed
kraeckelium 1 year ago
I've been reading my bloody C book for hours and i didn get a thing. I just watched this video and got the whole concept in 8.07 minutes. Thanks dude, you're a life saver.
erfankl 1 year ago
Great Tutorial.
codedrinker 1 year ago
woo thanks man! helped me a lot!
Guns4Guitars 1 year ago
{
return x * y;
}
Doesn't the "* Asterisk" also mean times x by y?
lazarus554 1 year ago
cant you just set findarea(one,two) to some variable like z for example so that you don't have to type that function in every time u want to use it???.
xtremixt1 1 year ago
Comment removed
killseb13 1 year ago
I have a question, for getchar(). I always put getchar() as the last line of main(). However, it seems the program tends to skip this getchar().
So I need to put one or two extra getchar() to make the program stop to show the result.
Is there anything I can do to without using extra getchar()??
Thank you
jimmy5420 1 year ago
@jimmy5420 Well sometimes all you need is the extra getchar() because sometimes the program opens and buffers the first one so you need the second one there just in case.
Bansihm3nt 1 year ago
@Bansihm3nt I see, thx for the help.
jimmy5420 1 year ago
@jimmy5420 Hey man,
Sure. Try replacing getchar( ) with:
system("PAUSE");
That should do the trick.
matthazan 1 year ago
@matthazan or getch();
system() is slow and NOT recommended.
OlloX3 1 year ago
This has been flagged as spam show
holy fuck Whooping cough... every single goddamn video
outlaw2411 1 year ago
lol"Into to Functions"
intro?
outlaw2411 1 year ago
bucky dude.wat does..return 0; does????
MrAbIRaZ 1 year ago
@MrAbIRaZ
return true
which returns to the main function. I think.
I don't think it is necessary, but what would I know watching a beginner tut.
scrag10 1 year ago
thanks you very much , now i know how to use the function .
jed7124 1 year ago
bucky is the man!
aXque 1 year ago
Whooping cough....the No.1 killer of programmers worldwide...
whyzeguy 1 year ago 99
@whyzeguy ahaha you are a genius !!!
Thorgils1 1 year ago
@whyzeguy Every video I hear him say that I just crack up. Haha I know it's coming, and when it finally get's there im like yes!!!!!! its like his catch phrase like bart simpsons "eat my shorts" or gary colemans "Whatchoo talking 'bout willis?"
Bansihm3nt 1 year ago
@whyzeguy ya really, well said...
vivekkumardaga 9 months ago
*11 Tutorials, and still got the cough..... Gutted
CraigMcAllisterMusic 1 year ago
Ahh, now I understand the difference between variables and parameters ^^
Thanks!
numbcore 1 year ago
lol i heard a motor cycle in the background around 7:04 :D
tharwpoop 1 year ago
better explanation than some of my college proffessors and in a really short time
tharwpoop 1 year ago
there's no need for having a prototype at the top.... just place your function above main(void)
less code = less work = less confusing = win
dorood 1 year ago
I need tutorial on pointer. Could you please do the tutorial on pointer function. Thanks
oabutt25june 1 year ago
It seems like every video you have the whooping cough. Hope you get well soon. lol. nice videos...really helps explain how to do these stuff.
JSG9990 1 year ago
Thank you!!!
NoobCoverMaker4Life 1 year ago
thanks!!!
darylrasco 2 years ago
i have a horse named bucky lol..
x11115 2 years ago
what is the return 0; for?
kkacper9 2 years ago
To check if the program compiled correctly. If it didn't compile correctly, it will print a number other than 0.
Aggregate02 2 years ago
@kkacper9
Return -; is similiar to getch(); it just simply makes sure that the console does not close before you can see it.
BufferOverflowAttack 2 years ago
@BufferOverflowAttack return is nothing like getch().
return, returns out of the flow of a function. For example.
if (condition) return our of function with this value.
0121ryanh117 2 years ago
so it can return to the begining i think?...am i right?
WasabisoupProduction 2 years ago
@kkacper9 It returns from the main function with a value of zero. A value zero is a default value. If it were to just return with no value, then it might return any crazy value which isnt wanted.
0121ryanh117 2 years ago
I believe return 0 is just to make sure the program ends.
x11115 1 year ago
@kkacper9 google is your BFF
0121ryanh117 1 year ago
What is the name of the website you say at 7:52?, I can´t understand what you´re saying. Thanx
Great Tutorial by the way.
tapsim 2 years ago
Dude, you are a lifesaver for me and several of my classmates in my C-Programming class. Thanks so much.
SpidermanMagician 2 years ago
Good video. Very helpful. However, I noticed your compiler is very slow. You should use a program called Code Blocks. It compiles programs really fast and has colours for different things. Try it, its very good.
GoldXpert 2 years ago
Code::Blocks is not a compiler.
fallrite 2 years ago
yes i know that. What I meant was that the program "code blocks" is used for C programming. It has a built in compiler that compiles faster than the compiler in his program.
GoldXpert 2 years ago
Functions don't "spit out data", you lunatic. Leave that poor compiler alone.
fingerprint211b 2 years ago
This comment has received too many negative votes show
SHUT THE FUCK UP WHO GIVES A FUCK
jtuts1 2 years ago
These videos are great! very concise! In an hour of watching and programming along I have effectively reviewed a month's worth of material for my electrical engineering test. although in order to do well on the test I will still need to do lots of practice problem solving.
TheThissucks123 2 years ago
great videos man, i've so much more from these videos than my professor :P do you base these tutorials from the C Programming book by Brian Kernighan?
tmvhacker 2 years ago
can anybody post his website address please
toyee1 2 years ago
where on ur site is the code located
rodneymullet19 2 years ago
I have a question. why not just use #define , for example you could use:
#define findarea(a,b) (a*b)
and there you have a function that you can use to automatically calculate anything
leviterande 2 years ago
of course you could do that more simply but the point of the tutorial is to teach someone how to make functions so that when you have more complicated tasks you can write the necessary functions.
TheThissucks123 2 years ago
Am getting compiler error.....Please can any1 help me
bgowda008 2 years ago
copy and paist ur code here
kenpomaster95 2 years ago
Complicated man
aqa722 2 years ago
Dude, stop coughing, it is annoying as hell. Just grab Audacity or any other free audio editor to edit the audio of the video, so the cough is out of the track and then add it to the video with VirtualDub.
gasto5 2 years ago
This comment has received too many negative votes show
are you being seriuse?
XxBUDHUNTERxX 2 years ago
It's spelled serious.
gasto5 2 years ago 2
This comment has received too many negative votes show
well you truley need a life and a girl by the sounds of it lol! lmao!
XxBUDHUNTERxX 2 years ago
uhm oh ya im from england and thats how we spell it here so if you dont spell it that way then stop using our language. simple you lowlife
XxBUDHUNTERxX 2 years ago
ehm, using LMAO and seriuse as a language native to you is a huge sign of not getting laid because you are ugly or a socially awkward person.
Go to a gym and build your body. Also go out and see the world. Talk to people in real life.
Oh and stop spamming. The internet is already full of it. Again, you lack purpose.
gasto5 2 years ago
ok well il let everyone else judge on that comment and stop speaking my language now lol
XxBUDHUNTERxX 2 years ago
The Whooping Cough can best be considered as his signature trademark. I like it!
Titanium640 2 years ago 2
Not true. There is a plethora of other authors that do the same, and it is disturbing and distracting.
gasto5 2 years ago
This comment has received too many negative votes show
dude stop typing, you are stupid as hell
TheThissucks123 2 years ago
This comment has received too many negative votes show
ehm, must I comment how stupid you are?
gasto5 2 years ago
This comment has received too many negative votes show
you're the one complaining about a fucking cough you pansy.
TheThissucks123 2 years ago
I love how people pick Youtube comments as a distress place to spam about their own psychological projections.
gasto5 2 years ago 21
I love how people pick youtube to spit out little factoids they learned in Psych 101 (total bullshit course by the way) to sound smart.
TheThissucks123 2 years ago
Dude lower your guard, are you earning something from this whole nonsense?
gasto5 2 years ago
lmao owned
Agreed!
Shorty20122012 2 years ago
I expect programming hungry watchers, hence smarter than average people. I was wrong, so I had to Pwned them.
gasto5 2 years ago
@gasto5
loool
Shorty20122012 1 year ago
@gasto5 Sometimes, i dream about cheese.
Jjunior130 1 year ago
Gr8 job Bucky!!! thnx alot.
12BigP 2 years ago
great help!!!!!!!!!!!!!! cheers
0871356005 2 years ago
have you checked for SQL Injection vulnerabilities on your admin control panel for your website?
newmanto03 2 years ago
hello sir bucky?? is this the last tutorial? pls upload more.. about arrays... your videos are very helpful to me.. i'm already your subscriber..
i'll be waiting for the other c tutorials..
thanks..
god bless..
GLENNTACAN 2 years ago
Bucky wouldn't a pointer be better for returning the answer? I've always found the return function rather unwieldy. Or global variables?
nekolux 2 years ago
Global variables are discouraged practice. Going the pointer router would work, if you didnt mind losing variable scope. Really just depends on the job.
TechApplePie 2 years ago
i think the point of the video is to illustrate how a main function calls on another function and retrieves the data. There's another video on pointers.
So, yes - obviously there are better ways to do it, but that's not the purpose of the video.
madoth4 2 years ago
Cool Video A+++++++++++++++++++++
dannybetts123 2 years ago
This comment has received too many negative votes show
void nigger(){while(1)cout<<"faggot";}int main(){nigger();return 0;}
bigfaggykitty 2 years ago
This is wrong. You should have two new variables in your called function. Have them perform an algebraic expression, assign the answer to that expression to a new variable, then return that variable. The way you've done it works but will mess you up when you try to do anything really useful with your routine.
TechApplePie 2 years ago 2
you're an idiot
IronChefWannabe 1 year ago
mybe u
abujp1993 1 year ago
isnt area lenght X width?
hahabendover 2 years ago 2
Yeah area is length X width(just correcting the spelling you write lenght not length..)
girocraz 2 years ago
THX please upload more before i forget!! lol
tyleriscool45 2 years ago
Very niceee
simfinator 2 years ago 2