{"id":15522399,"url":"https://github.com/imranhsayed/programming-in-c","last_synced_at":"2026-01-28T05:23:14.661Z","repository":{"id":58938738,"uuid":"418611000","full_name":"imranhsayed/programming-in-c","owner":"imranhsayed","description":"Programming in C","archived":false,"fork":false,"pushed_at":"2022-09-24T13:26:16.000Z","size":177,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-13T02:19:50.498Z","etag":null,"topics":["array","c","c-programming","circular-linked-list","cprogramming","data","data-structures-and-algorithms","file-handling","linked-list","pointers"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imranhsayed.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}},"created_at":"2021-10-18T17:54:58.000Z","updated_at":"2023-06-03T16:46:01.000Z","dependencies_parsed_at":"2022-09-19T04:41:55.746Z","dependency_job_id":null,"html_url":"https://github.com/imranhsayed/programming-in-c","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranhsayed%2Fprogramming-in-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranhsayed%2Fprogramming-in-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranhsayed%2Fprogramming-in-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranhsayed%2Fprogramming-in-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imranhsayed","download_url":"https://codeload.github.com/imranhsayed/programming-in-c/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543615,"owners_count":20955865,"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":["array","c","c-programming","circular-linked-list","cprogramming","data","data-structures-and-algorithms","file-handling","linked-list","pointers"],"created_at":"2024-10-02T10:40:56.254Z","updated_at":"2026-01-28T05:23:09.643Z","avatar_url":"https://github.com/imranhsayed.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# programming-in-c\nProgramming in C\n\n## Compiling a c program\n\n* Create an executable c program file and execute it.\n\n```gcc example.c -o example \u0026\u0026 ./example\n```\n\n### Arrays\n\n#### One dimensional array ( Vectors )\n* Syntax:\n`int arrayVariableName[size];`\n\n* Example one - `int myNums[4];` // Here 4 is the size of the array, means this array can have upto four items.\n* Example two `int myNums[] = {1, 4, 6, 8}` // Because we are declaring and initiallzing the array at the same time, we don't need to specify the size 4.\n\n#### Two Dimensional array ( Matrices )\n* Syntax:\n`int arrayVariableName[rowsCount][columnsCount];`\n\n* This two dimensional array has two rows and each row has 4 items(colums) in the array. You need to loop through it twice to print their values\n* Example: `int myNums[2][4] = { {2, 3, 2, 1}, {2, 5, 4, 2}`\n\n* Example Two:\n* ```\n#include\u003cstdio.h\u003e\nint main(){      \nint i=0,j=0;    \nint arr[4][3]={{1,2,3},{2,3,4},{3,4,5},{4,5,6}};\n\n//Traversing 2D array    \nfor(i=0;i\u003c4;i++){    \n    for(j=0;j\u003c3;j++){    \n        printf(\"arr[%d] [%d] = %d \\n\",i,j,arr[i][j]);    \n    }//end of j    \n}//end of i    \nreturn 0;  \n}\n```\n\n\u003cimg width=\"1434\" alt=\"image\" src=\"https://user-images.githubusercontent.com/11497423/189525386-7f5d95f3-b800-49d3-afa8-fdeda3374afb.png\"\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimranhsayed%2Fprogramming-in-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimranhsayed%2Fprogramming-in-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimranhsayed%2Fprogramming-in-c/lists"}