Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

372 Commits

Repository files navigation

C Programming Concepts

This repository contains a collection of C programs that illustrate various concepts in C programming. The programs are organized by topic and are accompanied by brief comments explaining the key concepts and techniques used.

Getting Started

To compile and run these programs, you will need a C compiler such as GCC or Clang. You can install these compilers on your system using a package manager or by downloading them from their respective websites. Once you have a compiler installed, you can navigate to the directory containing the program you wish to run and use the gcc or clang command to compile it, like so:

$ gcc program.c -o program
$ ./program

Search this repository with a Keyword

To search for a specific keyword in this repository, click on the following link:

Search this repository

Search the keyword on the seach bar or add your keyword at the end of the URL, after the q= parameter.

For example, to search for the keyword "example", the URL would be:

https://github.com/Lavin-tom/c_programming/search?q=example

Press enter after adding the keyword to see the search results.

Concepts Covered

For each topic, there are one or more programs that demonstrate the key concepts.The following table summarizes the concepts covered in this repository:

Basic Syntax

ConceptTopics that covered
ArrayDemonstrates the use of 1D and 2D array
Command line argumentsatoiatofatoi_user_functionatof_user_functionload time input
Coding challengevarious coding challenge questions in c
Condition compilation#if#else#ifdef#ifndef#endif
Control statementdo whilegotopattern programsswitch case
Data structureLinked list
circular linked listdoubly linked listsingly linked list
Queue
circular queuedouble ended queuepriority queue
Sorting
bubble sortinsertion sortmerge sortquick sortselection sort
Stack
stack linked listbalanced parathesis
Tree
binary treebinary serach tree
Dynamic memory allocationmalloccallocreallocfree
EnumDemonstrates the use of enum
Filesfgetcfgetsfopenfprintffputcfputsfscanffseekftell
Functionscall by valuecall by referencefunction pointers
Hacker rank c questionsVarious C coding questions from Hackerrank.com
Macrosmacros with argumentsmacros without argumentsspecial macros
MakefileDemostrates the use of make file concept
Multiple file compilationsDemostrate how multiple file compilations works
Number SeriesDemostrate how multiple file compilations works
Operatorsbitwiseconditionalincrement and decrementlogicalsizeof
PointersVarious code of pointers and function pointers
Random CodesMost common c coding questions
Recursive functionCommon c codes with recursive function
Storage classautoexternstaticstatic vs global
Stringsstrlenstrcpystrncpystrcmpstrncmpstrstrstrchr and various string concepts
StructureVarious code of structures
TypedefDemostrate the use of typedef in codes
UnionDemostrate union concept with various codes
Variable arugument list functionDemostrate varibale argument list function with various codes

Contributing

If you have a program or example that you think would be a good addition to this repository, please feel free to submit a pull request or open an issue. Contributions are always welcome!

NOTE

I am still learning, so the code in this repository may not be optimized and may contain errors or bugs. Please feel free to point out any issues or suggest improvements. Your feedback is greatly appreciated!

About

This Github repository is a collection of C coding examples and projects with brief explanation comments. It is designed to help C programmers of all levels learn and practice their skills on a variety of topics.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Contributors

Languages