Skip to content

farinap5/Learning-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning-C

This repository contains my collection of simple C programming examples, made to help to learn the C programming language as well as the creation of algorithms.

The idea is that all the codes are simple to understand because they have comments explaining line by line. Small codes and beginner friendly.

All programs should be easily campiled and run on Linux based machines, as not tested on Windows shouldn't fail though.

Feel free to open a pull request to fix any issues or include any new code.


Compile and Run

Simple compilation.

CLang

clang-7 -pthread -lm -o outputfile file.c

GCC

gcc file.c -o outputfile

Kernel Linux

./outputfile

Or

gcc file.c && ./a.out

Windows

> outputfile