NAVI NING

The very beginning mind itself is the most accomplished mind of true enlightenment.

Inline Function

A good optimization approach

Inline Function Let’s look at the following program int sum(int x, int y) { return x + y; } int main() { int a = 10; int b = 20; int ret = sum(a, b); return 0; } When main(...

Default Parameters

Function with default parameters

Default Parameters When passing arguments to a funtion, we can do this in a naive way: int sum(int a, int b) { return a + b; } int main() { int a = 10; int b = 20; int ret = sum(...

Program Compiling and Linking

From source code to executable file

Program Compiling and Linking We all know that we need to compile the source file to an executable program for the machine to run, but what exactly happened? A modern compiler does most of the wo...

Function Call - Stack Frame

What happen after a function is called

Function Call: Stack Frame Let’s look at the following code: int sum(int a, int b) { int temp = 0; temp = a + b; return temp; } int main() { int a = 10; int b = 20; int ret ...

Virtual Address Space of Process - Memory Partition and Layout

What happen after a program starts

Virtual Address Space of Process: Memory Partition and Layout Any programming language is compiled into commands and data. When a program start, it will be loaded from the disk into the memory. Ho...

Navi's Road to AI - Prelude

Sharing my own experience in learning Artificial Intelligence

Navi’s Road to AI - Prelude 🎵 Sharing my own experience in learning Artificial Intelligence Why Writing This This fall I start my first graduate semester in UI. As a student with another backg...

Hello World!

The birth of my blog

Hello World! I am so EXCITED to witness the birth of my blog! It will become the place I record my thoughts, screenshot my life and witness my growth. Can’t wait to explore this wonderful world f...