{"id":1615,"date":"2023-01-30T12:48:09","date_gmt":"2023-01-30T09:48:09","guid":{"rendered":"https:\/\/www.aydiner.gen.tr\/?p=1615"},"modified":"2023-01-30T13:11:11","modified_gmt":"2023-01-30T10:11:11","slug":"bir-boyutlu-dizilerin-olusturulmasi","status":"publish","type":"post","link":"https:\/\/www.aydiner.gen.tr\/index.php\/2023\/01\/30\/bir-boyutlu-dizilerin-olusturulmasi\/","title":{"rendered":"D\u0130Z\u0130LER"},"content":{"rendered":"<pre>Dizilerin olu\u015fturulmas\u0131 iki \u015fekilde olabilmektedir:<\/pre>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\r\nint&#x5B;] sayilar=new int&#x5B;10]; \/\/Tek sat\u0131rda tan\u0131mlama\r\n\r\n\r\n<\/pre>\n<div>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nint&#x5B;]sayilar; \/\/ 2 sat\u0131rda dizi tan\u0131mlama\r\nsayilar=new int&#x5B;10];\r\n<\/pre>\n<pre>Dizi olu\u015fturulurken i\u00e7ine de\u011fer atamak i\u00e7in a\u015fa\u011f\u0131daki \u015fekilde kullan\u0131labilir.<\/pre>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\r\nint&#x5B;] sayilar={5,7,61,99}; \r\n\/\/ tan\u0131mlama s\u0131ras\u0131nda int tipi diziye de\u011fer giri\u015fi \r\nstring &#x5B;] isimler={&quot;Ahmet&quot;,&quot;Ali&quot;,&quot;\u0130smail&quot;,&quot;Hasan&quot;}; \r\n\/\/ tan\u0131mlama s\u0131ras\u0131nda string tipinde diziye de\u011fer giri\u015fi \r\nchar&#x5B;] harfler = {'k','l','m','n'}; \r\n\/\/ tan\u0131mlama s\u0131ras\u0131nda char tipindeki diziye de\u011fer atama\r\n\r\n\r\n<\/pre>\n<p>Sesli harfler dizisi.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nchar&#x5B;] sesli = { 'a', 'e', '\u0131', 'i', 'o', '\u00f6', 'u', '\u00fc' }; \/\/sesli harfler i\u00e7in dizi tan\u0131ml\u0131yoruz\r\n\r\n<\/pre>\n<p>Dizi Tan\u0131mlama \u00d6rnekleri<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\r\nstring&#x5B;] isimler = new string&#x5B;5]; \/\/ String tipinde 5 elemanl\u0131 dizidir.\r\nbyte&#x5B;] siralar = new byte&#x5B;6]; \/\/ Byte tipinde 6 elemanl\u0131 dizidir.\r\nbool&#x5B;] durumlar = new bool&#x5B;4]; \/\/ Boolean tipinde 4 elemanl\u0131 dizidir.\r\nfloat&#x5B;] uzunluklar = new float&#x5B;8]; \/\/ Float tipinde 8 elemanl\u0131 dizidir.\r\n\r\n\r\n<\/pre>\n<pre>Diziye De\u011fer Vermek<\/pre>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nstring&#x5B;] kisiler = new string&#x5B;5] {\u201cAy\u015fe\u201d,\u201dFatma\u201d,\u201dYusuf\u201d,\u201dMerve\u201d,\u201dAhmet\u201d}; \r\n<\/pre>\n<p><a href=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2023\/01\/dizideger.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1629\" src=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2023\/01\/dizideger-300x58.png\" alt=\"\" width=\"300\" height=\"58\" srcset=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2023\/01\/dizideger-300x58.png 300w, https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2023\/01\/dizideger.png 601w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>diziler diziler | array | dizi tan\u0131mlama | diziye de\u011fer verme | | Bir Boyutlu Dizilerin Olu\u015fturulmas\u0131| Bir Boyutlu Dizilerin Olu\u015fturulmas\u0131<\/p>\n","protected":false},"author":1,"featured_media":547,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[120,119],"class_list":["post-1615","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programlama","tag-array","tag-diziler"],"_links":{"self":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/posts\/1615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/comments?post=1615"}],"version-history":[{"count":0,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/posts\/1615\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/media\/547"}],"wp:attachment":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/media?parent=1615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/categories?post=1615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/tags?post=1615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}