[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
C Programming Tutorial – 3 – Comments and Math Functions
Comments
31 responses to “C Programming Tutorial – 3 – Comments and Math Functions”
-
Am i right that you dont have to put "%dn" just put "%d"
-
WOW
-
46 ahah dalbaeb
-
is there anothes playlist of c tutorial?
-
What does <conio.h> do? I must have missed that vid
-
Best IT tutorial ever. thankyou so much, i understood most what was not understood properly in class
-
it is amazing!!
-
Do you think we're dumb??! We went to school you know!
-
That's basic math..
-
C:UsersMassoudiDesktopgcc.exe installation problem, cannot exec `cc1': No such file or directory
-
Hello All please help me.
when i compile and run my first program i get this message , source file not compiled…. please help where the problem is
-
<conio.h> is not available on mac, if I'm correct ( after quick google search), are there any mac equivalent for this ?
Also, would it be correct to compare <conio.h> to a library ?
-
sir problem coming source file not compiled,,plzz helpp
-
what does the %d do? I don't think he explained that
-
Oh so this programming thingy also uses the order of PEMDAS right?
-
Why did you suddenly go to using "main (void)" and end it with "gatch;" In the last video it was just "main{<code>; return 0;}
-
gawd i can program now the best tutorial ever!!! 🙂
-
I like the tutorials for the most part and I get that he is trying to make the topic accessible to everyone, but if you require an explanation of the order of operations, which is basic mathematics, then you might be in over your head.
-
I don't get the need of <conio.h>! it isn't necessary, is it?
-
First I want to say thank you. I have been trying for quite a while to learn programming. These tutorials are awesome. My question though is why is it necessary to use conio.h in this program? I removed it and the program runs just fine.
-
THANK YOU! = )
-
I just learned PEMDAS again :/
-
Why did you put n after %d? Isn't that only if you want to go down a line?
-
Good lesson, but /* comment */ is a multi-line comment, just use // comment for single-line ones.
-
Good explanation of order of ops, single line comments should be used more often than not:
// I am a comment
Notice the // to start the comment. The comment ends when a new line is added.
This type of comment /* comment */ is typically only used to comment out large blocks of code for debugging. Either way does work though 🙂 -
Your lessons are fun.
-
give this man a cookie! awesome videos bro, thank you!
-
+andrewvanrhoberts getchar() and getch() are the same as scanf but are quicker and, unlike scanf, they can only work with single character. getchar() gets a single character from the keyboard as does getch(). The only difference is that once you hit a key, like the letter A, you need to press Enter to confirm it for getchar(). Backspace to change a letter also works. getch(), quicker method than getchar(), does not need Enter; just press a key and immediately it is confirmed, so backspace won't work.
Would suck if tests all used getch(), lol.
"
int ans;
printf("Hit yes or no [y/n]? ");
ans = getchar();
getchar(); //need two getchar()s
return 0;
""
int ans;
printf("Hit yes or no [y/n]? ");
ans = getch();
return 0;
""
char ans;
printf("Hit yes or no [y/n]? ");
scanf(" %c", &ans);
return 0;
" -
it was awesome i saw your all the three video i like it thanks bro
-
the /n makes what ever is after it is on a new line, the same as if you were to press return on your keyboard.
-
or
B=brackets
I=indicies
D=devision
M=multiplication
A=addition
S=subtraction
(feel like the only guy that uses BIDMAS and everyone else uses BODMAS)… 🙁 so alone
Leave a Reply