Tag: computer science

  • C Pointers 101: Part 3 – Pointer Arithmetic

    C Pointers 101: Part 3 – Pointer Arithmetic

    In part 1, we learned the basics of pointers. In part 2, we learned what it meant to pass a variable by value or reference. Remember in part 2 I said that when C passes an array to a function, it passes the pointer to the first element of the array and then pointer arithmetic…

  • C Pointers 101: Part 2 – Passing Pointers to Functions

    C Pointers 101: Part 2 – Passing Pointers to Functions

    In part 1, we learned the basic ideas behind pointers, addresses, and what they mean. In part 2, we’re going to talk about one of the main uses for pointers, passing by reference. This part will be a little easier to wrap your head around and might make some of the concepts in part 1…

  • C Pointers 101: Part 1 – A Gentle Introduction

    C Pointers 101: Part 1 – A Gentle Introduction

    If the C language’s pointer feature has ever intimidated you, you’re not alone. Many programmers new to the language have been tripped up by the concept of pointers, but I believe it’s because pointers are poorly taught.