C Video Tutorial 4

C Video Tutorial 4Welcome to part 4 of my C Video Tutorial! Today I’m going to try something a little different to try and make the videos feel more like a classroom atmosphere.

We’ll be looking at pointers in c. I’ll cover what pointers are. What is the difference between * and &. How to use pointers and arrays. How to create an array of strings. We’ll also look at how to change the value of variables inside of functions and how to manipulate char arrays in functions.

If you like videos like this, it helps to tell Google+ with a click here [googleplusone]

Code From the Video

CTutorial4_1.c

CTutorial4_2.c

4 thoughts on “C Video Tutorial 4”

  1. So can I conclude that an array is treat exactly like a pointer to a sequence of elements with an offset?

    //say I had the function
    void incrementByOne(int input[]) //it takes an array as an input{

    for(int i = 0; i < sizeof(input); i++){
    input[i]++;
    }
    }

    void main(){
    int someArray[] = {1,4};
    incrementByOne(someArray);
    //is someArray[] equal to {2,5} ?
    }

    thanks

  2. Derek, Great videos, I am trying to find a way to reach out to you, but not finding to easy… Anyhow, ere is me email… I would like to have a direct Q&A with u by phone or skype… Maybe 15 minutes, and i would like to make a nice donation to your site for that help. Anyways, if u see this and would be interested, please feel free to reach out. The questions are short and easy, I just need to feel better about my thoughts and website.

    Regards, John

    1. Hi John, Please don’t make a donation. I’m very happy to answer any questions you have. If you want the message to be private send me a PM on YouTube. I check YouTube a couple times a day. I’m sorry, but I can’t talk to people over the phone. That would just get to crazy if people thought they could call me. I get a couple hundred comments a day as it is. I hope that makes sense.

      Feel free to ask questions though and I’ll do my best to help if I can.

      Derek

Leave a Reply

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