{"id":5619,"date":"2020-12-21T22:14:29","date_gmt":"2020-12-21T20:14:29","guid":{"rendered":"https:\/\/blue.pri.ee\/ttu\/?p=5619"},"modified":"2020-12-21T22:14:29","modified_gmt":"2020-12-21T20:14:29","slug":"2-lab-pointers","status":"publish","type":"post","link":"https:\/\/blue.pri.ee\/ttu\/labs\/pr2_en\/2-lab-pointers\/","title":{"rendered":"2. lab: pointers"},"content":{"rendered":"<h4><strong>Lab content<\/strong><\/h4>\n<p>&nbsp;<\/p>\n<h4><span id=\"After_the_class,_you_should_be_able_to\" class=\"ez-toc-section\"><\/span><strong>After the class, you should be able to<\/strong><\/h4>\n<ul>\n<li>Understand what a pointer is<\/li>\n<li>Declare different types of pointers<\/li>\n<li>Understand some of the use cases for pointers<\/li>\n<li>Understand what a NULL pointer is<\/li>\n<li>Understand the dereference and address operators<\/li>\n<li>Understand why some variables when reading with scanf() required &amp; and some didn&#8217;t<\/li>\n<li>Find the address of any variable<\/li>\n<li>Pass addresses of variables to functions (by reference)<\/li>\n<li>Better understand the difference of passing arguments to functions by value and by reference (originally simplified as copy, original)<\/li>\n<li>Understand how arrays are actually passed to functions and thus why we can alter them without any extra steps<\/li>\n<li>Understand pointer arithmetics<\/li>\n<li>Know what a memory address looks like<\/li>\n<li>Understand that there are different width memory addresses and why\u00a0 it is like that<\/li>\n<\/ul>\n<h4><strong>Additional content<\/strong><\/h4>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lab content &nbsp; After the class, you should be able to Understand what a pointer is Declare different types of pointers Understand some of the use cases for pointers Understand what a NULL pointer is Understand the dereference and address operators Understand why some variables when reading with scanf() required &amp; and some didn&#8217;t Find &hellip; <a href=\"https:\/\/blue.pri.ee\/ttu\/labs\/pr2_en\/2-lab-pointers\/\" class=\"more-link\">Loe edasi <span class=\"screen-reader-text\">2. lab: pointers<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[],"class_list":["post-5619","post","type-post","status-publish","format-standard","hentry","category-pr2_en"],"_links":{"self":[{"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/posts\/5619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/comments?post=5619"}],"version-history":[{"count":0,"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/posts\/5619\/revisions"}],"wp:attachment":[{"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/media?parent=5619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/categories?post=5619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/tags?post=5619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}