Dangers of Improper Macro Naming
November 1, 2020
TOC
- 1. A random promotion
- 2. Expected unqualified-id before string constant Error
- 3. The Dangers of MACROS
A random blog by a random human
November 1, 2020
October 25, 2020
I was randomly browsing r/CarletonU community on Reddit since it’s one of the schools I may attend next Fall. A particular post interested me due to the title: For anyone in Computer Science. As a recent graduate in Computer Science (undergrad), this post caught my attention. This blog post is inspired by my response on reddit about double pointers.
October 15, 2020
It came to my attention from an embedded course on udemy the existence of scanset in scanf
October 4, 2020
Recently, I’ve been learning embedded programming from udemy and there was a section dedicated const
.
The section was interesting because despite programming in C a lot during my duration of my undergrad, I have never taken a look at const
in much detail. I am sure there is more to const
than
what the course provides but I still learned a lot from this section itself.
September 25, 2020
Today I learned something new that should have been obvious but it was something I never took time to think about. In Linux, we have three standard streams: stdin
, stdout
, and stderr
. If you are familiar with programming in C, you should know that stdin
is the input channel that handles data from an input device such as your keyboard. scanf
is a function that scans input according to format
(definition from SCANF(3) - Linux Programmer's Manual
). But how does scanf
actually scan the input?
September 22, 2020
In the latter half of June (when I flee from my parent’s home to Mississauga for 2 months so that I can study and read all I want without being bothered), I decided to read Intermediate Perl: Beyond The Basics of Learning Perl. For those of you who are not familiar with the book, it’s the sequel to the “Llama book” (Learning Perl), a classic book on Perl.