{"id":21,"date":"2010-06-09T08:48:51","date_gmt":"2010-06-09T08:48:51","guid":{"rendered":"http:\/\/www.electronic-products-development.com\/embedded-programming\/c-programming\/pointers\/21"},"modified":"2026-06-17T09:25:03","modified_gmt":"2026-06-17T08:25:03","slug":"memory-pointers","status":"publish","type":"post","link":"https:\/\/ibex.tech\/c\/c\/pointers\/memory-pointers","title":{"rendered":"Memory Pointers"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Write to a specific location in memory<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>(*(unsigned int*)0xffe0004c) = 0;\n(*(unsigned int*)reg_value) = 0;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Using pointers with an array index<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\tuint8_t *p_buffer = &amp;MyArray&#91;0];\n\n\tp_buffer&#91;5] = 55;\t\t\/\/(No * used)<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Calling Function That Wants A Constant Pointer With A Variable Pointer<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>ffs_remove((const char*)filename);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Write to a specific location in memory Using pointers with an array index Calling Function That Wants A Constant Pointer With A Variable Pointer<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-pointers"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/21","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=21"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":1117,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/21\/revisions\/1117"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}