
{"id":161,"date":"2017-04-09T10:44:42","date_gmt":"2017-04-09T14:44:42","guid":{"rendered":"http:\/\/www.otherroute.net\/wordpress\/?p=161"},"modified":"2024-07-16T13:47:50","modified_gmt":"2024-07-16T17:47:50","slug":"c-for-programmers","status":"publish","type":"post","link":"https:\/\/www.otherroute.net\/wordpress\/2017\/04\/c-for-programmers\/","title":{"rendered":"C for Programmers"},"content":{"rendered":"<p>There are programmers who have never used C before! This is a shocking fact to me, as C is where I started programming. And there are many programmers who want to learn to use C, but already know how to program.\u00a0<em>C for Beginners<\/em> is easy to find with a Google search. They need\u00a0an introduction to pointers and a bit of malloc. Hopefully without mentioning things like functions, types, and how to write a conditional which would surely put a ruby, python, or java programmer to sleep.<\/p>\n<p>So here it is. A few code examples with pointers. I mention\u00a0tools like gcc and some flags and gdb. And there is\u00a0some assembly code, as really writing C requires some computer architecture understanding.<\/p>\n<p><a href=\"https:\/\/www.otherroute.net\/wordpress\/wp-content\/uploads\/2024\/07\/c-pointers-for-experts-3.pdf\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-164\" src=\"https:\/\/www.otherroute.net\/wordpress\/wp-content\/uploads\/2017\/04\/pdf.png\" alt=\"PDF\" width=\"49\" height=\"64\" \/><\/a><\/p>\n<p>Or here&#8217;s a document with the same goals from Stanford: <a href=\"http:\/\/cslibrary.stanford.edu\/102\/\">Stanford CS Education Library: 102<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are programmers who have never used C before! This is a shocking fact to me, as C is where I started programming. And there are many programmers who want to learn to use C, but already know how to &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/www.otherroute.net\/wordpress\/2017\/04\/c-for-programmers\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[22,24,23],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-c","tag-latex","tag-pointers"],"_links":{"self":[{"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/comments?post=161"}],"version-history":[{"count":10,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":325,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/posts\/161\/revisions\/325"}],"wp:attachment":[{"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}