Top Comments
All Comments (186)
-
im gunna bild skynet w deez twotorials
-
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!!!
-
ive noticed that about 1-2 mins into ur videos u always cough once and mention u got whooping cough :D
-
@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)
-
@Magik360 thats weird It shouldnt lol
-
How come when I leave out the: "int findarea(int x, int y);" part to the top it still works?
Is the prototype necessary?
-
@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 Thanks but what is the void inclosed in braces or whatever ()'s called :P
-
@RetroCopS int main (void) is the correct way actually, VOID main is the wrong one
-
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; ?



Great tutorials. One thing though, you didn't explain the purpose of "return 0;".
tapewobble 1 year ago 33
This tutorial is approximately 12 times easier than those I have in school :D
Thanks!
theral056 10 months ago 15