VI Quick Introduction

[ad_1] 1. Overview A text editor is a program that can be used to create and modify text files. One of the most popular editors on Unix systems (it is also available on Windows and many other platforms) is vi. 2. 5-Minute Introduction As a brief introduction to vi, go through the following: First, type vi x at the Unix…

Padding and Packing in C

Data structure alignment is the way data is arranged and accessed in computer memory. It consists of two separate but related issues: data alignment and data structure padding. When a modern computer reads from or writes to a memory address, it will do this in word sized chunks (e.g. 4 byte chunks on a 32-bit system) or larger. Data alignment…

Function Pointers in C

What is Function Pointer? A function pointer is a variable that stores the address of a function that can later be called through that function pointer. This is useful because functions encapsulate behavior. For instance, every time you need a particular behavior such as drawing a line, instead of writing out a bunch of code, all you need to do…