/c-for-java-devs

This aims to introduce some examples to learn C for Java Devs

Primary LanguageC

C for Java Devs

Lesson 1

  • Structural programming
  • Hello World
  • Pointers
  • Arrays
  • Structs
  • Stack vs Heap
  • Memory Allocation through malloc

Lesson 2

  • Argument Passing
  • Booleans
  • Strings
  • Static Key Word. (Modificador de acceso)
  • Global Variables
  • Preprocesor directives
    • Macros
    • textual sustitution

Lesson 3

  • Preprocesor directives
    • Header files
  • Structs, list + how they look in pintos + init, insert, length, delete.

Usage Instructions

To compile use a command like this:

$ gcc file_name.c -o executable_name

To execute the produced executable file, try a command liek this:

$ ./executable_name