Skip to content

Instantly share code, notes, and snippets.

View lukechn99's full-sized avatar
🏠
Working from home

Luke Chen lukechn99

🏠
Working from home
View GitHub Profile
@lukechn99
lukechn99 / pointers_and_arrays.c
Last active September 26, 2019 20:27 — forked from mrnugget/pointers_and_arrays.c
Kind of a cheat sheet for pointers and arrays in C
#include <stdio.h>
int main(int argc, char *argv[])
{
// Taken from here: http://denniskubes.com/2012/08/19/pointers-and-arrays-in-c/
// initialize an array of ints
int numbers[5] = {1,2,3,4,5};
// standard array notation