{"id":1487,"date":"2012-07-31T18:53:41","date_gmt":"2012-07-31T17:53:41","guid":{"rendered":"http:\/\/roboblog.fatal-fury.de\/?p=1487"},"modified":"2012-07-31T18:57:46","modified_gmt":"2012-07-31T17:57:46","slug":"fucking-c-part-2","status":"publish","type":"post","link":"http:\/\/roboblog.fatal-fury.de\/?p=1487","title":{"rendered":"fucking C Part 2"},"content":{"rendered":"<p><a href=\"http:\/\/roboblog.fatal-fury.de\/?p=243\">Part 1<\/a><\/p>\n<pre><code>\r\nint array[2][2]={{0,1}, {2,3}};\r\nprintf(\"element: %i\\n\",  *(  *( array + (0,1)) + (0,1) ) ) ;\r\n<\/code>\r\n\r\nkater@ktux:~$ bin\/gcc\/bin\/gcc -Wall test.c\r\ntest.c: In function \u2018main\u2019:\r\ntest.c:87:43: warning: left-hand operand of comma expression has no effect [-Wunused-value]\r\ntest.c:87:52: warning: left-hand operand of comma expression has no effect [-Wunused-value]\r\n<\/pre>\n<p>Welche Zahl wird ausgegeben? 0, 1, 2 oder 3?<br \/>\nTipp 1:<br \/>\nDer erste *operator entscheidet ob man in {0,1} oder {2,3} Array landet. Der zweite *operator entscheidet dann zwischen der 0, 1 bzw 2,3.<\/p>\n<p>Tipp 2:<br \/>\na = (1,2); wird zu a = 2;<\/p>\n<p>Thx @BjoernC <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Part 1 int array[2][2]={{0,1}, {2,3}}; printf(\"element: %i\\n\", *( *( array + (0,1)) + (0,1) ) ) ; kater@ktux:~$ bin\/gcc\/bin\/gcc -Wall test.c test.c: In function \u2018main\u2019: test.c:87:43: warning: left-hand operand of comma expression has no effect [-Wunused-value] test.c:87:52: warning: left-hand operand of comma expression has no effect [-Wunused-value] Welche Zahl wird ausgegeben? 0, 1, 2 oder [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[14],"class_list":["post-1487","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-c"],"_links":{"self":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/1487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1487"}],"version-history":[{"count":4,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/1487\/revisions"}],"predecessor-version":[{"id":1491,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/1487\/revisions\/1491"}],"wp:attachment":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1487"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}