Top Comments
All Comments (96)
-
anyone please give the link for next video in this series??
-
5 people are transgenders!
-
main is nothing else than any other function, except for being the starting and mostly ending one, the Big Boss if you want...
if you use void it means the function won't return a value. He used int because it would require too much time for one video to explain what arguments are when you start a program...
-
1. scanf is used for reading the input from the user until he presses ENTER. It is much better to use getchar to record ONE character from the user and put it into a CHAR variable instead of recording an unlimited user input and hoping he doesn't input more than one character. Because if he does do so and put a whole string in a char, it will break the program...
2.scanf is considered "unsafe" because it can sometimes produce unexpected results
-
why use int main ( ) instead of void main ( ) ? =)
-
Why you don't use scanf instead of getchar? :O
-
@TheNanoStuff for more info (and a better explanation xD) gidnetwork (dot) com (slash) b-61 (dot) html
(why u no let us post links utoob)
-
@TheNanoStuff system(PAUSE) is an actual call to an underlying OS function, whereas getchar() is a stdio C function...getchar is just lighter and more portable...A lot of people will do something like:
printf("Press any key to continue. . .");
getchar();
-
Thanks I've learnt so much off of these tutorials I'm 13 and an aspiring games programmer so I have been learning C this has taught me soo much, shame you have stopped making them
I'm learning alot.. this is way better than in school :]
rotfarm 1 year ago 77
4 people fail at c
DaGamingW0lf 4 months ago 13