Skip to content

neurmancer/Basic-C-Examples

Repository files navigation

A BASIC C SCRIPT FILE FOR BEGINNERS(ME lulz)

Table of Contents

Basic Projects and Lectures

Projects

  • Added a hello, world script

  • Added a Basic FizzBuzz script

  • Added a basic prime number counter with user input

  • Added a Koch Curve from Binary interpretation I made (not sure if it's accurate)

  • Added a get time program experiment

  • Added a basic terminal window get test program for myself just syntax and shit. To use in DVD-Screensaver but till I use it this will stay here

  • Added a cmp popcount program

  • Added a subfolder named RNG for basic rand() applications

    • Added a basic heads or tails program (with explanations)
    • Added a guess game
    • Added a D6 roller (Now go implement you D20 DND freaks)
    • Added a Magic 8Ball thingy that roasts you
    • Added a Rock,Paper,Scissors game (but it's cursed AF)

Lectureish (boring part)

  • Added a basic pointer101 lecture with syntax and detailed explanations without making it scary (yet)
  • Added a second pointer lecture and moved the pointer shit into a subfolder called Pointerhell
  • Added a pointer&function relation lecture
  • Added a pointer and array relation quickie
  • Added a Function Pointer introduction Lecture (honestly it's not the best practice to use them this way but good for seeing syntax)
  • Added a fibonacci sequence function (with loops and recursion)
  • Added a basic enum101 lectureishy (yeah I started to make words up)
  • Added a struct intro
  • Added a struct usage with pointers intro
  • Added a array and pointer relation lecture
  • Added a funfact about language itself
  • Added a C preprocessors subfolder with 2 lectures included
    • First, using define and macros
    • Second, Conditional blocks (IFDEF,IFNDEF,ELIF)

Have less comment(more focused on syntax part)

    • Added a struct with dynamic allocation intro
    • Added a unions intro

Added a subfolder for dynamic memory allocation

  • Added introduction for malloc()
  • Added simple malloc usage with arrays
  • Added a realloc& calloc introduction

Funny Things

  • Bring Me To Life lyrics spitter for CLI (prototype shitty jukebox from day 3)

  • A program that gives you an output file and spits a text on terminal anyways because I used stderr instead of stdout

  • Added a walking segfault PTSD on purpose

ASM DISASSEMBLIES OF FILES FOR THOSE LOW-LEVEL GREMLINS LIKE ME LOVES SPICY C NUDES

  • Basically Every script I'll put in the repo will get it's assembly file with the same name
  • I may add -O2 flag to make it torturing to get what even the program was in the first place if I feel like it
  • Fresh C nudes came (17.02.2026 00.02AM)

SHITTY JUKEBOX IS GOT IT'S OWN REPO

  • Due to my obssession overgrowing the 'basic' in the basic repo shitty jukebox will get it's own repo with new features and possible updated winSUXport.

  • Here it is: https://github.com/neurmancer/ShittyJukeBoxCLI

    • I do explain shit so much for someone doesn't have people to read right?

Compile and Run

#For the ones don't know how to compile and run 
#if there is additional lib/flag for any specific file it will be commented within file itself.

cc filename.c -o output #To compile

./output 
#To run (but since all the files written for 
#Linux and don't have Windows ports I presume you already know to do this because windows sux)

About

A repo dedicated to simplest C scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors