{"id":3909,"date":"2014-03-30T06:20:10","date_gmt":"2014-03-30T06:20:10","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/2-dimension-array-argument-collection-of-common-programming-errors\/"},"modified":"2014-03-30T06:20:10","modified_gmt":"2014-03-30T06:20:10","slug":"2-dimension-array-argument-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/2-dimension-array-argument-collection-of-common-programming-errors\/","title":{"rendered":"2 dimension array argument-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/101889513654ccabf2cff98d3352e74c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nYakov<\/p>\n<p>The function should get as an argument 2-dimension square array of int.so the function signature :<\/p>\n<pre><code>void f (int** arr,int n) \/\/ n is a size of each dimension\n<\/code><\/pre>\n<p>I have defined the array :<\/p>\n<pre><code>int arr [][5] = {{0,1,1,1,1},{1,1,1,1,1},{0,1,1,0,1},{0,1,1,1,1},{0,1,1,1,0}}\n<\/code><\/pre>\n<p>The call :<code>func (arr,5); \/\/<\/code><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Yakov The function should get as an argument 2-dimension square array of int.so the function signature : void f (int** arr,int n) \/\/ n is a size of each dimension I have defined the array : int arr [][5] = {{0,1,1,1,1},{1,1,1,1,1},{0,1,1,0,1},{0,1,1,1,1},{0,1,1,1,0}} The call :func (arr,5); \/\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3909","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3909"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3909\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}