C Programming Tutorial – 3 – Comments and Math Functions

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Comments

31 responses to “C Programming Tutorial – 3 – Comments and Math Functions”

  1. Troy Low Avatar

    Am i right that you dont have to put "%dn" just put "%d"

  2. Vinay Ayar Avatar

    is there anothes playlist of c tutorial?

  3. USS Trekky Avatar

    What does <conio.h> do? I must have missed that vid

  4. Dasni Senarathna Avatar

    Best IT tutorial ever. thankyou so much, i understood most what was not understood properly in class

  5. Filip Trplan Avatar

    Do you think we're dumb??! We went to school you know!

  6. HalfBlack007 Avatar

    That's basic math..

  7. Massoud Massoudi Avatar

    C:UsersMassoudiDesktopgcc.exe installation problem, cannot exec `cc1': No such file or directory

  8. Massoud Massoudi Avatar

    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

  9. Zeppin Avatar

    <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 ?

  10. Dinesh kaushal Avatar

    sir problem coming source file not compiled,,plzz helpp

  11. paulceltics Avatar

    what does the %d do? I don't think he explained that

  12. mohammed uddin Avatar

    Oh so this programming thingy also uses the order of PEMDAS right?

  13. Garrett Carlson Avatar

    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;}

  14. azrael sasori Avatar

    gawd i can program now the best tutorial ever!!! 🙂

  15. Lei Sheng Avatar

    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.

  16. SultanAA91 Avatar

    I don't get the need of <conio.h>! it isn't necessary, is it? 

  17. Colleen Monroe Avatar

    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.

  18. RustyMonster Avatar

    I just learned PEMDAS again :/

  19. MagicWerd Avatar

    Why did you put n after %d? Isn't that only if you want to go down a line?

  20. ac989 Avatar

    Good lesson, but /* comment */ is a multi-line comment, just use // comment for single-line ones.

  21. SamsWebDev Avatar

    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 🙂 

  22. [S]unjay Avatar

    Your lessons are fun.

  23. Andrisan Ovidiu Avatar

    give this man a cookie! awesome videos bro, thank you!

  24. 11swallowedinthesea Avatar

    +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;

  25. hunny singh Avatar

    it was awesome i saw your all the three video i like it thanks bro

  26. Sammy Jo Avatar

    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.

  27. russell choudhury Avatar

    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

Your email address will not be published. Required fields are marked *