{"id":20356560,"url":"https://github.com/madhurimarawat/learning-programming-concepts-with-c","last_synced_at":"2025-10-19T11:42:42.184Z","repository":{"id":187632491,"uuid":"677277670","full_name":"madhurimarawat/Learning-Programming-Concepts-With-C","owner":"madhurimarawat","description":"This repository contains programs in the C programming language.","archived":false,"fork":false,"pushed_at":"2024-07-16T11:03:30.000Z","size":222,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T22:35:53.995Z","etag":null,"topics":["armstrong-number","array-manipulations","basic-programs","c","c-programming-code","do-while-loop","escape-sequences","for-loop","functions","loops","loops-and-patterns","pattern-printing","prime-numbers","recursion","star-pattern","string-functions","swapping-algorithm","user-defined-functions","vowel-consonant","while-loop"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madhurimarawat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-11T07:06:19.000Z","updated_at":"2024-09-28T20:14:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3ddb689-8d55-4e67-8e98-4667e1539831","html_url":"https://github.com/madhurimarawat/Learning-Programming-Concepts-With-C","commit_stats":null,"previous_names":["madhurimarawat/learning-programming-concepts-with-c"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FLearning-Programming-Concepts-With-C","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FLearning-Programming-Concepts-With-C/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FLearning-Programming-Concepts-With-C/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FLearning-Programming-Concepts-With-C/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madhurimarawat","download_url":"https://codeload.github.com/madhurimarawat/Learning-Programming-Concepts-With-C/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248509372,"owners_count":21116006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["armstrong-number","array-manipulations","basic-programs","c","c-programming-code","do-while-loop","escape-sequences","for-loop","functions","loops","loops-and-patterns","pattern-printing","prime-numbers","recursion","star-pattern","string-functions","swapping-algorithm","user-defined-functions","vowel-consonant","while-loop"],"created_at":"2024-11-14T23:17:02.424Z","updated_at":"2025-10-19T11:42:37.153Z","avatar_url":"https://github.com/madhurimarawat.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learning-Programming-Concepts-With-C\nThis repository contains programs in the C programming language.\n\n\u003cimg src=\"https://github.com/madhurimarawat/Learning-Programming-Concepts-With-C/assets/105432776/1a5ed510-e769-4f8d-9f73-e53bc738d14b\" height=400 width=650\u003e\n\n---\n\n# About C Programming\n\n\u003cimg src=\"https://github.com/madhurimarawat/Data-structure-using-C/assets/105432776/c8b5fda5-7d9d-4c27-97c0-4fdf3f384a1e\" height=400 width=650 \u003e \u003cbr\u003e\u003cbr\u003e\n--\u003e C is a general-purpose programming language.\u003cbr\u003e\u003cbr\u003e\n--\u003e It is Procedural Programming language.\u003cbr\u003e\u003cbr\u003e\n--\u003e It has been used to develop operating systems, databases and applications.\u003cbr\u003e\u003cbr\u003e\n--\u003e It is Middle Level Programming language and gives more control to Programmer.\n\n---\n# Mode of Execution used \u003cimg src=\"https://logodix.com/logo/1709678.png\" height=30px width=30px\u003e\n\u003ch2\u003eGCC Compiler\u003c/h2\u003e\n--\u003e GCC stands for GNU C/C++ Compiler.\u003cbr\u003e\u003cbr\u003e\n--\u003e To begin with GCC, visit the official website \u0026nbsp;\u003ca href=\"https://gcc.gnu.org/\"\u003e\u003cimg src=\"https://logodix.com/logo/1709678.png\" height=30px width=30px\u003e\u003c/a\u003e\u003cbr\u003e\u003cbr\u003e\n--\u003e Download GCC according to the platform being used like Linux, MacOs or Windows.\u003cbr\u003e\u003cbr\u003e\n--\u003e Follow the setup wizard.\u003cbr\u003e\u003cbr\u003e\n--\u003e Write c code in any text editor or IDE and save it with .c extention.\u003cbr\u003e\u003cbr\u003e\n--\u003e Then just open the console and run this command -\u003cbr\u003e\u003cbr\u003e\n\n```\ngcc filename.c -o Output\n```\n--\u003e Filename is the name of the C script file and Output is the name of the output file.\u003cbr\u003e\u003cbr\u003e\n--\u003e After this command is executed, if the code is successfully compiled output file will be saved in the same location as the code file.\u003cbr\u003e\u003cbr\u003e\n--\u003e Once this Output file is executed in command prompt, the output will be displayed.\n\n---\n\n# C Programming Features\n\n\u003cimg src=\"https://i.ytimg.com/vi/9NKiDjvS5uQ/maxresdefault.jpg\" height=400 width=650\u003e\n\n---\n# Data Types in C\n\n\u003cimg src=\"https://th.bing.com/th/id/R.63f096ec4d86431aa7d876eed5cfd90b?rik=qkSHFbpW48OdAQ\u0026riu=http%3a%2f%2fwww.atnyla.com%2flibrary%2fimages-tutorials%2fdatatypes-in-c-programming.PNG\u0026ehk=Ukv2RGhTTkgROK0rfQ9PsXIrJPd9V%2bJZlYPF%2fWv8cuU%3d\u0026risl=\u0026pid=ImgRaw\u0026r=0\" height=400 width=650\u003e\n\n\u003ch1\u003e1.Primary Data Types\u003c/h1\u003e\nPrimitive data types are the most basic data types that are used for representing simple values such as integers, float, characters, etc.\u003cbr\u003e\n\u003ch2\u003ei) Integer \u003c/h2\u003e\n--\u003e The integer datatype in C is used to store the whole numbers without decimal values.\u003cbr\u003e\u003cbr\u003e\n--\u003e Octal values, hexadecimal values, and decimal values can be stored in int data type in C. \u003cbr\u003e\u003cbr\u003e\n\u003cul\u003e\n\u003cli\u003eRange:  -2,147,483,648 to 2,147,483,647\u003c/li\u003e\n\u003cli\u003eSize: 4 bytes\u003c/li\u003e\n\u003cli\u003eFormat Specifier: %d\u003c/li\u003e\u003c/ul\u003e\n\n\u003ch2\u003eii) Float \u003c/h2\u003e\n--\u003e In C programming float data type is used to store floating-point values.\u003cbr\u003e\u003cbr\u003e \n--\u003e Float in C is used to store decimal and exponential values.\u003cbr\u003e\u003cbr\u003e\n--\u003e It is used to store decimal numbers (numbers with floating point values) with single precision.\u003cbr\u003e\u003cbr\u003e\n\u003cul\u003e\n\u003cli\u003eRange: 1.2E-38 to 3.4E+38\u003c/li\u003e\n\u003cli\u003eSize: 4 bytes\u003c/li\u003e\n\u003cli\u003eFormat Specifier: %f\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eiii) Character\u003c/h2\u003e\n--\u003e Character data type allows its variable to store only a single character.\u003cbr\u003e\u003cbr\u003e\n--\u003e The size of the character is 1 byte. It is the most basic data type in C.\u003cbr\u003e\u003cbr\u003e\n--\u003e It stores a single character and requires a single byte of memory in almost all compilers.\n\u003cbr\u003e\u003cbr\u003e\n\u003cul\u003e\n\u003cli\u003eRange: (-128 to 127) or (0 to 255)\u003c/li\u003e\n\u003cli\u003eSize: 1 byte\u003c/li\u003e\n\u003cli\u003eFormat Specifier: %c\u003c/li\u003e\u003c/ul\u003e\n\n\u003ch1\u003e2. Void\u003c/h1\u003e\n--\u003e The void data type in C is used to specify that no value is present.\u003cbr\u003e\u003cbr\u003e\n--\u003e It does not provide a result value to its caller.\u003cbr\u003e\u003cbr\u003e\n--\u003e It has no values and no operations.\u003cbr\u003e\u003cbr\u003e\n--\u003e It is used to represent nothing. Void is used in multiple ways as function return type, function arguments as void, and pointers to void.\u003cbr\u003e\u003cbr\u003e\n\n\u003ch1\u003e3. Enumerated Type\u003c/h1\u003e\n--\u003e In computer programming, an enumerated type (also called enumeration) is a data type consisting of a set of named values called elements, members, enumeral, or enumerators of the type.\u003cbr\u003e\u003cbr\u003e\n--\u003e The enumerator names are usually identifiers that behave as constants in the language.\u003cbr\u003e\u003cbr\u003e\n\n\u003ch2\u003ei) Enum\u003c/h2\u003e\n--\u003e Enumeration (or enum) is a user defined data type in C. It is mainly used to assign names to integral constants, the names make a program easy to read and maintain.\u003cbr\u003e\u003cbr\u003e\n--\u003e The keyword ‘enum’ is used to declare new enumeration types in C.\u003cbr\u003e\n\n\u003ch1\u003e4. Derived Data Types \u003c/h1\u003e\nThe data-types that are derived from the primitive or built-in datatypes are referred to as Derived Data Types.\n\n\u003ch2\u003ei) Array\u003c/h2\u003e\n--\u003e An array in C is a fixed-size collection of similar data items stored in contiguous memory locations.\u003cbr\u003e\u003cbr\u003e\n--\u003e It can be used to store the collection of primitive data types such as int, char, float, etc., and also derived and user-defined data types such as pointers, structures, etc.\u003cbr\u003e\n\u003ch2\u003eii) Pointer\u003c/h2\u003e\n--\u003e Pointers are symbolic representations of addresses.\u003cbr\u003e\u003cbr\u003e\n--\u003e They enable programs to simulate call-by-reference as well as to create and manipulate dynamic data structures.\u003cbr\u003e\u003cbr\u003e\n--\u003e Iterating over elements in arrays or other data structures is one of the main use of pointers. \u003cbr\u003e\n\u003ch2\u003eiii) Structure\u003c/h2\u003e\n--\u003e The structure in C is a user-defined data type that can be used to group items of possibly different types into a single type.\u003cbr\u003e\u003cbr\u003e\n--\u003e The struct keyword is used to define the structure in the C programming language. \u003cbr\u003e\u003cbr\u003e\n--\u003e The items in the structure are called its member and they can be of any valid data type.\u003cbr\u003e\n\u003ch2\u003eiv) Union\u003c/h2\u003e\n--\u003e A union is a special data type available in C that allows to store different data types in the same memory location.\u003cbr\u003e\u003cbr\u003e\n--\u003e Union can be defined with many members, but only one member can contain a value at any given time.\u003cbr\u003e\u003cbr\u003e\n--\u003e Unions provide an efficient way of using the same memory location for multiple-purpose.\u003cbr\u003e\n\n---\n\n## Thanks for Visiting 😄\n\n- Drop a 🌟 if you find this repository useful.\u003cbr\u003e\u003cbr\u003e\n- If you have any doubts or suggestions, feel free to reach me.\u003cbr\u003e\u003cbr\u003e\n📫 How to reach me:  \u0026nbsp; [![Linkedin Badge](https://img.shields.io/badge/-madhurima-blue?style=flat\u0026logo=Linkedin\u0026logoColor=white)](https://www.linkedin.com/in/madhurima-rawat/) \u0026nbsp; \u0026nbsp;\n\u003ca href =\"mailto:rawatmadhurima@gmail.com\"\u003e\u003cimg src=\"https://github.com/madhurimarawat/Machine-Learning-Using-Python/assets/105432776/b6a0873a-e961-42c0-8fbf-ab65828c961a\" height=35 width=30 title=\"Mail Illustration\" alt=\"Mail Illustration📫\" \u003e \u003c/a\u003e\u003cbr\u003e\u003cbr\u003e\n- **Contribute and Discuss:** Feel free to open \u003ca href= \"https://github.com/madhurimarawat/Learning-Programming-Concepts-With-C/issues\"\u003eissues 🐛\u003c/a\u003e, submit \u003ca href = \"https://github.com/madhurimarawat/Learning-Programming-Concepts-With-C/pulls\"\u003epull requests 🛠️\u003c/a\u003e, or start \u003ca href = \"https://github.com/madhurimarawat/Learning-Programming-Concepts-With-C/discussions\"\u003ediscussions 💬\u003c/a\u003e to help improve this repository!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhurimarawat%2Flearning-programming-concepts-with-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadhurimarawat%2Flearning-programming-concepts-with-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhurimarawat%2Flearning-programming-concepts-with-c/lists"}