• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Crush

Learn Electronics & Microcontrollers

JOIN THE ACADEMY FOR ARDUINO SIGN UP NOW!
  • HomeBack to Start
  • AboutWho is Brian Jenkins?
  • Electronics BlogElectronics & Computers
  • Arduino BlogAll about Arduino

C Programming

C Programming Tutorial 3: Arithmetic & Logic in C

3 Comments

Welcome to C Programming Tutorial three!

In the last C programming tutorial, we talked about what a variable is and went over some common variable types, explaining what they’re used for and what their limitations are.

We’re still learning the basics of C programming, so this time we’re going to talk about arithmetic and logic.

Logic and arithmetic are one of the foundations of any programming language.

Some may think the principles and rules on this are obvious and may be tempted to skip this tutorial. I urge you not to skip, especially if you’re new to C programming. While many things about arithmetic and logic may seem obvious and boring, there are some caveats and gotchas. Even if you’re a C programming aficionado, this tutorial can serve as a good review of the basics.

Sometimes, gaining more complex knowledge has the tendency to push simple things into the dusty corners of our brains, making us forget the basics and over-complicate things.

[Read more…] about C Programming Tutorial 3: Arithmetic & Logic in C

C Programming Tutorial 2: Intro to Variables

3 Comments

C-Programming-Tutorial

The first C programming tutorial gave a quick history of the C language. Then, it talked about how high-level instructions get converted to the 1s and 0s a microcontroller can understand. Finally, we went over some good programming practice.

In this C programming tutorial, we’re going to talk about one of the core concepts of C, or any programming language for that matter. We’re going to talk about variables.

If you have a decent amount of C programming experience you probably know something about variables. You should still read this because, as usual, it will be a good review.

If you’re new to C or programming in general, understanding variables is not an option. You need to read this and know this stuff.

Of course, it’s hard to know who knows what, so we’ll assume you’re just getting started with C programming.

On we march into C programming tutorial 2!

[Read more…] about C Programming Tutorial 2: Intro to Variables

C Programming Tutorial 1: Intro to C

6 Comments

C Programming Tutorial 1

This C programming tutorial will be the first in a series of C tutorials. The posts in this blog thus far cover both the theoretical and the more practical, but until now none covered programming.

The C programming language is universal. Some readers may be C programming experts (unlike me). Others may be new or maybe haven’t even written one line of code. This series of posts will assume you’re brand new to C programming (and I’m sure I’ll get to scrape some of the rust off my C skills in the process). Those with C experience may find it makes a good review. If you are new to C, this C programming tutorial is a great place to start.

If you’ve worked with PICs or any sort of microcontroller before, there’s a good chance you have some experience in C programming. Arduino sketches are very similar to C, so ditto there.

[Read more…] about C Programming Tutorial 1: Intro to C

  • « Go to Previous Page
  • Page 1
  • Page 2

Primary Sidebar

Copyright Custom Computer Solutions, LLC© 2026