{"id":20499202,"url":"https://github.com/mohdnehalkhan/c-programs","last_synced_at":"2025-07-06T23:02:39.837Z","repository":{"id":188636022,"uuid":"679121203","full_name":"MOHDNEHALKHAN/C-PROGRAMS","owner":"MOHDNEHALKHAN","description":"This Repository contains all basic program's of C programming language for a beginner \u0026 I am mentioning all the C programs which I had been taught by my teachers","archived":false,"fork":false,"pushed_at":"2023-09-26T07:49:14.000Z","size":122,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T06:58:01.803Z","etag":null,"topics":["c"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MOHDNEHALKHAN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-16T06:27:37.000Z","updated_at":"2023-11-28T14:39:40.000Z","dependencies_parsed_at":"2023-08-16T08:15:29.481Z","dependency_job_id":"9e3ad43d-5f51-4ff7-b69d-eae007d1dc5b","html_url":"https://github.com/MOHDNEHALKHAN/C-PROGRAMS","commit_stats":null,"previous_names":["mohdnehalkhan/c-programs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MOHDNEHALKHAN%2FC-PROGRAMS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MOHDNEHALKHAN%2FC-PROGRAMS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MOHDNEHALKHAN%2FC-PROGRAMS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MOHDNEHALKHAN%2FC-PROGRAMS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MOHDNEHALKHAN","download_url":"https://codeload.github.com/MOHDNEHALKHAN/C-PROGRAMS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242089146,"owners_count":20069919,"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":["c"],"created_at":"2024-11-15T18:16:47.951Z","updated_at":"2025-03-05T19:23:31.264Z","avatar_url":"https://github.com/MOHDNEHALKHAN.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fork and Clone the Repository\n\n1. Go to the GitHub repository you want to fork.\n2. Click the \"Fork\" button in the upper right-hand corner of the repository page.\n3. Select your username or organization where you want to fork the repository. This creates a copy of the repository in your GitHub account.\n4. Open your terminal (Command Prompt on Windows, Terminal on macOS and Linux).\n5. Use this in your terminal\n   ```sh\n    git clone https://github.com/\u003cyour-username\u003e/\u003crepository-name\u003e.git\n    ```\n\n# Running C Programs in Visual Studio Code\n\nThis README provides a step-by-step guide on how to execute and run C programs within Visual Studio Code using the \"C-program\" repository.\n\n## Prerequisites\n\nBefore you begin, make sure you have the following installed:\n\n1. **Visual Studio Code**: If you haven't already, download and install Visual Studio Code from the [official website](https://code.visualstudio.com/).\n\n2. **C/C++ Extension**: Install the \"C/C++\" extension for Visual Studio Code. Open VS Code, go to the Extensions view by clicking on the square icon in the sidebar or pressing `Ctrl+Shift+X`, and search for \"C/C++\". Install the one provided by Microsoft.\n\n3. **GCC Compiler**: You need a C compiler to build and run your C programs. Most commonly used is the GNU Compiler Collection (GCC). If you don't have it installed, you can follow instructions here: [Install GCC on Windows, macOS, and Linux](https://gcc.gnu.org/install/index.html).\n\n## Getting Started\n\n1. **Clone the Repository**: Start by cloning the \"C-program\" repository to your local machine using either the HTTPS or SSH link provided on the repository page.\n\n    ```sh\n    git clone \u003crepository_url\u003e\n    ```\n\n2. **Open the Repository in VS Code**: Open Visual Studio Code, and from the menu, select `File \u003e Open Folder...` Navigate to the directory where you cloned the repository and select the folder.\n\n3. **Create or Open a C File**: Inside the repository folder, you can either create a new C file (e.g., `my_program.c`) or open an existing one.\n\n4. **Write Your C Code**: Write your C program in the opened file. For example:\n\n    ```c\n    #include \u003cstdio.h\u003e\n\n    int main() {\n        printf(\"Hello, World!\\n\");\n        return 0;\n    }\n    ```\n\n## Compiling and Running\n\n1. **Compile the C Program**: Open a terminal in Visual Studio Code by going to `Terminal \u003e New Terminal`. In the terminal, navigate to the directory containing your C file and use the following command to compile it:\n\n    ```sh\n    gcc my_program.c -o my_program\n    ```\n\n2. **Run the Executable**: After successful compilation, run your program by typing the following command in the terminal:\n\n    ```sh\n    ./my_program\n    ```\n\n    You should see the output of your program in the terminal.\n\n## Debugging (Optional)\n\nVisual Studio Code also supports debugging C programs. To set breakpoints, inspect variables, and step through your code, follow these steps:\n\n1. Set a breakpoint by clicking in the gutter next to the line numbers.\n\n2. Press `F5` or go to `Run \u003e Start Debugging` to launch the debugger.\n\n3. Use the debugging controls in the top menu bar to step through your code and inspect variables.\n\n## Conclusion\n\nYou have successfully set up and run C programs in Visual Studio Code using the \"C-program\" repository. Feel free to explore more advanced features and optimize your development process as you become more familiar with both C programming and Visual Studio Code.\n\nHappy coding!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohdnehalkhan%2Fc-programs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohdnehalkhan%2Fc-programs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohdnehalkhan%2Fc-programs/lists"}