Better understanding of what goes on when coding After learning the basics of javascript and working on beginner level projects, I soon realized that I never knew what was going on behind the scenes. For instance what happens when my JS file is compiled? What does it actually mean to compile or execute a file […]
c
I am learning C in 2020 – Beginner – Understanding array memory storage
Operation System : Windows 10 IDE : VsCode Requirements : a computer, internet, notepad Book | Tutorial : see links below Git Project :None Goal Learn how int and char arrays are stored in memory and how much memory is allocated in specific scenarios. What I learned Integer arrays Pre and Post assignment I wanted […]
I am learning C in 2020 – Beginner – Data types, Headers and Makefile
Operation System : Windows 10 IDE : https://cplayground.com/ Requirements: gcc compiler Book : Head first C chapter 4 Goal Learn more about C What I learned The different data types Keep in mind that there are other data types that are untreated here. Char I sincerely thought each char was stored as it is, but […]
I am learning C in 2020 – Beginner – Open, Read, Write and Close file
Operation System : Windows 10 IDE : Visual Studio Code Problem Goal Learn how to open, write, read and close a file given in as a command line argument Pseudo-code Read a given file write contents into another out.txt file Close file Solution Include dependencies I added the errno header to track when errors […]
I am learning C in 2020 – Beginner – Understanding the size of pointer
Operation System : Windows 10 Problem Goal Be able to predict the number of bytes that will be allocated for an array, a pointer, integer, a single character etc. Pseudo-code No need for one. Solution Chars and pointer to strings As shown below, 1 byte is used to store a character. char a = ‘A’; […]
I am learning C in 2020 – Beginner – How I learned about the standard output, input, error and pipe command
Book: Head First C Chapter: 3 This implementation is provided in the book introduced above. I am simply going line by line to further understand. Operation System : Windows 10 Problem Goal Learn standard output, standard input, standard error, the pipe command, running programs concurrently by creating a program that does the following: Reads a […]
I am learning C in 2020 – Beginner – What I learned about memory, variables and pointers in c
Book: Head First C Chapter: 3 Platform used: cplayground.com Pointers humbled me Problem Goal Understand pointers at a foundational level. Memory Zones in C I figured it would be useful to gain a simple overview of where variables could live during the run of a c program. Stack Variables declared or/and initialised within a function […]
Learning C in 2020 – Absolute Beginner – Listing Network Adapters on Windows
Book: Hands-On Network Programming with C: Learn socket programming in C and write secure and optimized network code Overview reference This implementation is provided in the book introduced above. I am simply going line by line to further understand. Problem Goal List all network adapters on windows machine. Pseudo-code Get Network Adapters Print out basic […]