{"id":27382015,"url":"https://github.com/akhil-peram/c-programming","last_synced_at":"2025-04-13T15:17:05.289Z","repository":{"id":175334813,"uuid":"442209467","full_name":"Akhil-peram/C-Programming","owner":"Akhil-peram","description":"Programs for C Language ","archived":false,"fork":false,"pushed_at":"2025-02-19T14:29:42.000Z","size":72,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T15:16:57.223Z","etag":null,"topics":["c","programming"],"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/Akhil-peram.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":"2021-12-27T16:17:33.000Z","updated_at":"2025-02-19T14:29:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"eedbf5fd-49aa-4a8c-ac6d-ac6f5c735707","html_url":"https://github.com/Akhil-peram/C-Programming","commit_stats":null,"previous_names":["akhil-tesla/c-","akhil-tesla/c-programming","akhil-peram/c-programming"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akhil-peram%2FC-Programming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akhil-peram%2FC-Programming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akhil-peram%2FC-Programming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akhil-peram%2FC-Programming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Akhil-peram","download_url":"https://codeload.github.com/Akhil-peram/C-Programming/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248732483,"owners_count":21152852,"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","programming"],"created_at":"2025-04-13T15:17:04.330Z","updated_at":"2025-04-13T15:17:05.283Z","avatar_url":"https://github.com/Akhil-peram.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C Programming \n\n\n### Variables\n### Data Types\n### Conditional Statements\n### Files and Exceptions\n### Structures and Unions\n\n\nA Simple Hello world program in C Language \n\n          #include\u003cstdio.h\u003e\n           int main()\n          {\n            printf(\"Hello World\\n\");\n             return 0;\n           }\n\n\n\n\n\nC language was developed by Dennis Ritchie\nInclude function includes the header file which is \u003cstdio.h\u003e\nStdio stands for standard Input and Output  ( .h ) represents the header file\n\n\n\n**Input and Output**\n\n\nprintf is used to display the output of the given data in C \n\n\n          #include\u003cstdio.h\u003e\n           int main(){\n            int a=3,b=6;\n            int x=a+b;\n            printf(\"sum = %d\",x);\n            }\n\nScanf is used to take input from the user \nTo access the address of the input C uses ampersand (\u0026) to store the address.\n\nFORMAT SPECIFIERS \n\n• To access the address of the given data and to write the data into variables C uses these format specifiers for assigning address \n For int %d or %i\n    Float %f\n    String %s\n    Char %C\n\nProgram \n\n          #include\u003cstdio.h\u003e   // Header file\n           int main(){       // main function\n            int a =1;       // declaring variables and initializing values\n            float b=2;\n            char c='a';\n           printf(\" %d\\n%f\\n%c\",a,b,c);  // printing the variables\n           }\n\n**Manipulation of data types** \n\nTo do math in C we use int , float data types \n * Addition (+)\n * Subtraction(-)\n * Multiplication(*)\n * Division (/)\n * floor Division(//)\n\n *Calculations in c*\n\n        #include\u003cstdio.h\u003e \n        \n        int main()\n        {\n          int a=3,b=2;\n          \n          printf(\"sum = %d\",a+b);\n          \n          printf(\"Subtraction = %d\",a-b);\n          \n          print(\"Multiple = %d\",a*b);\n          \n          float x= 36.14;\n          \n          float y= 6.2;\n          \n           printf(\"division =%f\",x/y);\n\n           return 0;\n        }\n\n\n- For taking input we use scanf function to take input from user \n\n     \n            #include\u003cstdio.h\u003e\n              int main(){\n             printf(\"Enter two numbers \");\n            int a , b,c; //declaring variables \n            scanf(\"%d %d\",\u0026a,\u0026b);\n               c=a+b;\n            printf(\"\\nsum of numbers is %d\",c);\n            }\n# Operators\n\nThe operators for manipulating data in C divided into \n* Arithmetic operators\n\n            #include\u003cstdio.h\u003e\n  \n            int main(){\n  \n            int a = 10,  b=90;\n  \n            printf(\"Sum of a +b  is  %d\",a+b);\n  \n            return 0;\n                 }\n\n\n\n\n* Conditional operators\n* Logical operators\n* Bitwise operators \n\n\n# Variables\n\n*Variables* : Anything that stores the value .\n\n* int cars= 10 ,\n* float speed = 143.789 ,\n* double pi = 3.1428579631274639 ,\n* char letter ='L',\n* string = \"I am Ironman\";\n\nA variable can be anything that can store the values of specified format \n\n# Control Statements\n\n## Control flow\n\n* if\n* else if\n* else\n* switch cases\n\n\n### Loops\n* for loop\n* while loop\n* do while loop\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakhil-peram%2Fc-programming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakhil-peram%2Fc-programming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakhil-peram%2Fc-programming/lists"}