{"id":720,"date":"2016-07-27T17:32:35","date_gmt":"2016-07-27T17:32:35","guid":{"rendered":"https:\/\/ibex.tech\/c\/?p=720"},"modified":"2022-02-17T10:13:11","modified_gmt":"2022-02-17T10:13:11","slug":"pointers-2","status":"publish","type":"post","link":"https:\/\/ibex.tech\/c\/c\/memory\/pointers-2","title":{"rendered":"Pointers"},"content":{"rendered":"<h4>\nBasic pointer usage<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tchar my_buffer[20];\t\t\t\t\/\/Declare an array\r\n\tchar *p_buffer;\t\t\t\t\t\/\/Declare a pointer\r\n\t\r\n\tp_buffer = &amp;my_buffer[0];\t\t\/\/Load pointer\r\n\t*p_buffer++ = &#39;H&#39;;\t\t\t\t\/\/Write to the index 0 in the array\r\n\t*p_buffer++ = &#39;e&#39;;\t\t\t\t\/\/Write to the index 1 in the array\r\n<\/code><\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Basic pointer usage char my_buffer[20]; \/\/Declare an array char *p_buffer; \/\/Declare a pointer p_buffer = &amp;my_buffer[0]; \/\/Load pointer *p_buffer++ = &#39;H&#39;; \/\/Write to the index 0 in the array *p_buffer++ = &#39;e&#39;; \/\/Write to the index 1 in the array &nbsp;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-720","post","type-post","status-publish","format-standard","hentry","category-memory"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/comments?post=720"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/720\/revisions"}],"predecessor-version":[{"id":721,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/720\/revisions\/721"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/media?parent=720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/categories?post=720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/tags?post=720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}