day 7 of learning C++
Learned about Header Guards today. They prevent duplicate definition errors when the same header file gets included multiple times in a project.
Also understood the difference between declarations in .h files and definitions in .cpp files.
day 6 of learning cpp
forward declarations let you use a function before defining it, compiler processes each file separately & linker joins them, namespaces prevent naming conflicts, and the preprocessor runs before compilation pasting #include files directly
#100DaysOfCode
Day 5 of learning C++.
Today I understood scope, lifetime, and destructors. Small concepts but they actually explain a lot about how C++ works internally.
Slowly starting to connect the dots now :)
#cpp#100DaysOfCode
day 3 of learning C++ from https://t.co/4r1sJm0azL
today i learned about:
undefined behavior
garbage values
implementation-defined behavior
unspecified behavior
how memory stores bits internally
slowly starting to understand what actually happens behind the code.
#100DaysOfCode