Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/gouravthakur39/beginners-C-program-examples

Simple, Short and Sweet beginners friendly C language programs
https://github.com/gouravthakur39/beginners-C-program-examples

basic-learning basic-programming c code hacktoberfest hacktoberfest2019 programming project simple snippets template

Last synced: about 1 month ago
JSON representation

Simple, Short and Sweet beginners friendly C language programs

Lists

README

        

[Visit my website to know more about me : gouravthakur.com](https://gouravthakur.com)
# Beginners C Program Examples
## :octocat: Fork and :eight_pointed_black_star: star this repo
Simple, short and sweet beginners friendly C language programs

These program are written in codeblocks ide for windows. These programs are not very sophisticated as these are beginners friendly and have many bugs. Anyone who is new to c language can practice these examples.

- Only programs written in c language will be merged.
- Beautify/Format your code before making a PR. Poorly stuctured code with inconsistent spacing and bad variable name will not be merged.
- Use this tool to beautify your code : https://codebeautify.org/c-formatter-beautifier
- Make sure your program works after beautifying it.
- #include< stdio.h > is wrong and you must remove whitespaces. #include is correct.
- Please check your spellings before making a PR
- Comment code properly.

![alt text](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/Screenshot.PNG)

# List of programs
- [Hello World!](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/HelloWorld.c)
- [Area and circumference](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/AreaAndCircumference.c)
- [Basic Arithmatic](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/BasicArithmatic.c)
- [Fahrenheit To Celcius](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/FahrenheitToCelciusConv.c)
- [Lowercase To Uppercase](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/LowercaseToUppercase.c)
- [Uppercase To Lowercase](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/UppercaseToLowercase.c)
- [Simple Interest Calculator](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/SimpleInterestCalculator.c)
- [Student Marks Percentage](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/StudentMarksPercentage.c)
- [Swap Values Using Third Variable](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/SwapValueUsingThirdVariable.c)
- [Swap Value Without Using Third Variable](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/SwapValueWithoutUsingThirdVariable.c)
- [Relational Operators in C](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/RelationalOperators.c)
- [Ternary Operator](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/TernaryOperator.c)
- [Leap Year Using Ternary Operator](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/LeapYearTernaryOperator.c)
- [Sizeof Operator](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/SizeofOperator.c)
- [Find ASCII Value](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/FindAsciiValue.c)
- [Reverse Number](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/ReverseNumber.c)
- [Reverse Number 2](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/ReverseNumber2.c)
- [Bitwise Left Shift Operator](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/BitwiseLeftshiftOperator.c)
- [Bitwise Complement Operator](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/BitwiseComplementOperator.c)
- [Bitwise AND Operator](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/BitwiseAndOperator.c)
- [Bitwise Odd or Even](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/BitwiseOddOrEven.c)
- [Increment Operator](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/IncrementOperator.c)
- [Decrement Operator](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/DecrementOperator.c)
- [Nested If Leap Year](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/NestedIfLeapYear.c)
- [Nested if Greatest Integer](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/NestedifGreatestInteger.c)
- [Number to Character](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/Number-to-Character.c)
- [Check Character Type](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/CheckCharacterType.c)
- [Employee Grade](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/EmployeeGrade.c)
- [Daily Wage Calc](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/DailyWageCalc.c)
- [Day Name Using Switch Case](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/DayNameUsingSwitchCase.c)
- [Vowel or Consonant](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/VowelorConsonant.c)
- [Calculator using switch case](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/CalcUsingSwitchCase.c)
- [Bubble Sort](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/BubbleSort.c)
- [Insertion Sort](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/Insertionsort.c)
- [Merge Sort](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/Mergesort.c)
- [Quick Sort](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/Quicksort.c)
- [Goto statement](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/GotoStatementEvenOrOdd.c)
- [Mirror Number](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/MirrorNumber.c)
- [Dice roll with Adjustable sides](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/DiceRoll.c)
- [Dynamic 2D Array Using One Pointer](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/DynamicTwoDArrayUsingOnePointer.c)
- [Dyanamic 2D Array using Array of Pointer](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/DynamicTwoDArrayUsingArrayOfPointer.c)
- [Digital Root of a Number](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/DigitalRoot.c)
- [Swap By Reference Vs Swap By Copy](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/SwapByRefandCopy.c)
- [Display Linux Environment Variables](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/DisplayLinuxEnvirmentVariables.c)
- [Factorial](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/Factorial.c)
- [Get String Length](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/StringLength.c)
- [Decimal To Binary](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/DecimalToBinary.c)
- [Haystack and Needle (SubString)](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/HaystackAndNeedle_SubString.c)
- [Pointers in C](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/Pointers.c)
- [Binary Search](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/BinarySearch.c)
- [Recursion](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/Recursion.c)
- [Segmentation Fault or Bus Error Demo](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/SegmentationFaultorBusErrorDemo.c)
- [Structure](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/Structure.c)
- [Swapping 2 Numbers Without a Third Variable or ^](https://github.com/geetanjaliaich/beginners-C-program-examples/blob/FactorialEratosthenes/SwapIntegersWithout3rdVariable(Arithmatic).c)
- [Print 100 Prime numbers using Seive of Eratosthenes](https://github.com/geetanjaliaich/beginners-C-program-examples/blob/FactorialEratosthenes/PrimeByEratosthenes.c)
- [Palindrome Number](https://github.com/geetanjaliaich/beginners-C-program-examples/blob/FactorialEratosthenes/PalindromeNumber.c)
- [Temperature conversion](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/AllTempScalesConv.c)
- [Alphabet triangle](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/alphabetTriangle.cpp)
- [Armstrong Number](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/ArmstrongNumber.c)
- [Background Thread Sorter](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/BackgroundThreadSorter.c)
- [Basic Game](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/BasicGame.c)
- [Celsius to Kelvin](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/CelciusToKelvinConv.c)
- [Calculator](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/combine_calculator.c)
- [Common elements in two array](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/CommonElementsInTwoArrays.c)
- [Decimal to base n conversion](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/DecimalToBaseN.c)
- [Two-way decimal to hexadecimal](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/DecimalToHexadecimalViceVersa.c)
- [Encrypt and Decrypt XOR](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/EncryptDecryptXOR.c)
- [Fibonnaci Generation](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/FibonacciGeneration.c)
- [Calculate remainder](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/FindRemainder.c)
- [Check leap year](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/isInputLeapYear.c)
- [Find largest number](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/Largest.c)
- [Check odd or even](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/oddandeven.c)
- [Print pattern](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/Pattern1.c)
- [Polynomial linklist](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/Polynomial_linklist.c)
- [Print prime numbers](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/Prime.c)
- [Factorial of a number with recursion](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/RecursiveFactorial.c)
- [Simple EMI Calculator](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/SimpleEMICalculator.c)
- [Simple multiplication table](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/SimpleMultiplicationTable.c)
- [Square root](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/SquareRoot.c)
- [Stack implemenation of linklist](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/Stack%20-%20Linked%20List.c)
- [Swap integers without 3rd variable](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/SwapIntegers.c)
- [Swap value without third variable](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/SwapValueWithoutUsingThirdVariable.c)
- [Identify machine is big-endian or little-endian](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/endian.c)
- [Perform Selection Sort](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/SelectionSort.c)
- [Calculate Factorial upto input of 5000](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/large_factorial.c)
- [To check if a matrix is a sparse matrix or not](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/SparseMatrix_017.c)
- [To calculate the Least Common Multiple](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/lcm.c)
- [Lambda in C](https://github.com/gouravthakur39/beginners-C-program-examples/blob/master/lambda_in_c.c)
# Contributing
This is a personal learning project for me.

Please feel free to fork this repo. Pull request to submit more programs.