Clarifying about literals, macros, and const (still not constant?) @JacobSorber
Clarifying about literals, macros, and const (still not constant?)  @JacobSorber
Uploaded August 2022 | Updated September 2026, 1 week ago
Patreon ➤ patreon.com/jacobsorber
Courses ➤ jacobsorber.thinkific.com
Website ➤ jacobsorber.com
---

Clarifying about literals, macros, and const (still not constant?) // Last week's video about how a const int isn't a constant could have been more carefully worded, and it confused a few people (and frustrated others). This one clarifies a few things and tries to tease apart a few related concepts — literals, constants, macros, and constant integer expressions. I hope it helps.

Related Videos:
Last week's video: youtu.be/8a3HyL1VN0Q

***

Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.


About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.

More about me and what I do:
jacobsorber.com
https://people.cs.clemson.edu/~jsorber/
http://persist.cs.clemson.edu/

To Support the Channel:
+ like, subscribe, spread the word
+ contribute via Patreon --- [patreon.com/jacobsorber]

Source code is also available to Patreon supporters. --- [jsorber-youtube-source.herokuapp.com/]
Clarifying about literals, macros, and const (still not constant?)How to Implement a Tree in CHow to Indent Code the Right WayThe What, How, and Why of Void Pointers in C and C++?The right way to define a C function with no argumentsCoordinate your threads with a barrier (example in C)How to Set up Shared Memory in Your Linux and MacOS Programs. (shmget, shmat, shmdt, shmctl, ftok)Sorting in C: Why the double pointers when sorting pointers? (qsort)I Am Hiring!Stop Studying for Code InterviewsWhat is Unicode?How one thread listens to many sockets with select in C.
Jacob Sorber |

Clarifying about literals, macros, and const (still not constant?)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER