Skip to content

Instantly share code, notes, and snippets.

View maniadav's full-sized avatar

MY maniadav

View GitHub Profile
@maniadav
maniadav / lecture2.md
Created June 13, 2020 14:30 — forked from adiwajshing/lecture2.md
Sasta ICP -- Lecture 2 -- Signs, Strings, Structures & Arrays

Recap

  1. To compile & run your c program, open terminal and type in:
    1. gcc -o myprogram file.c
    2. ./myprogram Or you can execute both commands in a single go by joining them with a ;. For example, gcc -o myprogram file.c; ./myprogram
  2. Some info on data types & printing data types here.
  3. Template for a C file:
    #include