Category: C/C++

  • How to Use C Functions in Python

    How to Use C Functions in Python

    Did you know you can write functions in C and then call them directly from Python? Isn’t that cool? Let’s skip all the background and the “why would I ever need to do this” for now and just dive on in to the code! Originally posted here on dev.to First, the C Function To demonstrate,…

  • Why You Shouldn’t Learn C

    Why You Shouldn’t Learn C

    Knowledge of the C programming language is often touted as the mark of a “true” programmer. You don’t really know programming unless you know this language, or so the wisdom goes. Many aspiring programmers have been advised by gatekeepers senior developers to learn C to up their skills and bring them to the next level.…

  • 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.