Show Menu
Cheatography

C Reference Card Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

GCC Compile

gcc filename.c
compile filename.c
-o progra­m.out
set output progra­m.out

Program Struct­ure­/Fu­nctions

int main() {

    
declar­ations

    
statements

}
Main Function
type name
;
variable declar­ation