C++ Tutorial 24: Stringizing and Concatenation @WhatsACreel
C++ Tutorial 24: Stringizing and Concatenation  @WhatsACreel
Uploaded June 2014 | Updated September 2026, 2 weeks ago
This tute we'll look at the stringizing operator and concatenation with #define. Stringizing is mostly useful for debugging, when you need to know a variable's name in your code.

Stringizing gives us a macro parameter name as a null terminated character string. Concatenation lets us join together two macro parameters without spaces.

Also, the second coding example at the end is an absolutely hopeless blunder. Not only do I confidently show a rubbish way to check if two variables are the same type, but I do so with a dashing and condescending daring. My solution is utterly irrelevant to the topic of the tute. Ignore it completely :)

Support What's a Creel? on Patreon:
patreon.com/whatsacreel

FaceBook:
facebook.com/whatsacreel

Music Channel:
youtube.com/channel/UC2nWRGqPL6O-Lm8mexWhISQ

Another channel with random things:
youtube.com/channel/UCK7bPumWNzWRnb3N8LCzKsA
C++ Tutorial 24: Stringizing and ConcatenationFloating Point Bit Hacks Every Programmer Should Know (Including Fast Inverse Square Root - Quake)Answering Basic Assembly Language Questions - Assembly Language for BeginnersAre CPUs Getting Faster? (2009 AMD Phenom II vs 2018 Intel i7 8750H - Phenom 2 Benchmark)Direct2D Tutorial 6: Real Time Game LoopFixed Point Arithmetic 1: Intro to Fixed PointC++ Tutorial 5: While and Do While LoopsC++ Tutorial 10: Pointers Explained (Linked Lists vs Arrays Example)Modern x64 Assembly 16: Basic SIMD Floating Point Arithmeticx64 Assembly Tutorial 54: Floating Point Sign Masks (SIMD Floating Point ASM Examples)Agner Fogs VCL (Vector Class Library Installation and Overview)Why is Radix Sort so Fast? Part 3 Comparison and Code, Radix Sort vs QuickSort
Creel |

C++ Tutorial 24: Stringizing and Concatenation

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER