{"id":127,"date":"2015-01-12T13:40:43","date_gmt":"2015-01-12T13:40:43","guid":{"rendered":"https:\/\/programmerserkan.wordpress.com\/?p=127"},"modified":"2015-01-12T13:40:43","modified_gmt":"2015-01-12T13:40:43","slug":"operatorler","status":"publish","type":"post","link":"https:\/\/serkanyarar.com.tr\/blog\/programlama\/operatorler\/","title":{"rendered":"Operat\u00f6rler"},"content":{"rendered":"<p>Arkada\u015flar operat\u00f6rleri internette pek \u00e7ok yerde g\u00f6rebilirsiniz ama\u00a0\u00e7o\u011funun eksikleri oldu\u011funu farkettim. Di\u011fer operat\u00f6rleri de es ge\u00e7memek laz\u0131m diyerek, ba\u015fl\u0131yorum.<\/p>\n<h3>Aritmetik Operat\u00f6rler<\/h3>\n<p>Matematiksel i\u015flemlerin ger\u00e7ekle\u015fmesi i\u00e7in kullan\u0131l\u0131rlar.<\/p>\n<table style=\"height:222px;\" width=\"356\">\n<tbody>\n<tr>\n<td width=\"56\">\n<p style=\"text-align:center;\">+<\/p>\n<\/td>\n<td style=\"text-align:center;\" width=\"104\">Toplama<\/td>\n<\/tr>\n<tr>\n<td width=\"56\">\n<p style=\"text-align:center;\">&#8211;<\/p>\n<\/td>\n<td width=\"104\">\n<p style=\"text-align:center;\">\u00c7\u0131karma<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"56\">\n<p style=\"text-align:center;\">*<\/p>\n<\/td>\n<td width=\"104\">\n<p style=\"text-align:center;\">\u00c7arpma<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"56\">\n<p style=\"text-align:center;\">^<\/p>\n<\/td>\n<td width=\"104\">\n<p style=\"text-align:center;\">\u00dcs Alma<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"56\">\n<p style=\"text-align:center;\">\/<\/p>\n<\/td>\n<td width=\"104\">\n<p style=\"text-align:center;\">B\u00f6lme<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;\" width=\"56\">%<\/td>\n<td width=\"104\">\n<p style=\"text-align:center;\">Mod<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Aktarma Operat\u00f6rleri<\/h3>\n<p>De\u011fi\u015fkenlere de\u011fer aktarmak amac\u0131 ile kullan\u0131l\u0131rlar.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"56\">\n<p style=\"text-align:center;\">+=<\/p>\n<\/td>\n<td style=\"text-align:center;\" width=\"312\">\n<p style=\"text-align:left;\">Solundaki de\u011fi\u015fken ile sa\u011f\u0131ndakini toplayarak, sonucu solundaki de\u011fi\u015fkene aktar\u0131r.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"56\">\n<p style=\"text-align:center;\">-=<\/p>\n<\/td>\n<td width=\"312\">Solundaki de\u011fi\u015fkenden sa\u011f\u0131ndakini \u00e7\u0131kartarak, sonucu solundaki de\u011fi\u015fkene aktar\u0131r.<\/td>\n<\/tr>\n<tr>\n<td width=\"56\">\n<p style=\"text-align:center;\">*=<\/p>\n<\/td>\n<td width=\"312\">Solundaki de\u011fi\u015fken ile sa\u011f\u0131ndakini \u00e7arparak, sonucu solundaki de\u011fi\u015fkene aktar\u0131r.<\/td>\n<\/tr>\n<tr>\n<td width=\"56\">\n<p style=\"text-align:center;\">\/=<\/p>\n<\/td>\n<td width=\"312\">Solundaki de\u011fi\u015fkeni sa\u011f\u0131ndaki de\u011fi\u015fkene b\u00f6lerek, sonucu solundaki de\u011fi\u015fkene aktar\u0131r.<\/td>\n<\/tr>\n<tr>\n<td width=\"56\">\n<p style=\"text-align:center;\">%=<\/p>\n<\/td>\n<td width=\"312\">Solundaki de\u011fi\u015fkeni sa\u011f\u0131ndaki de\u011fi\u015fkene b\u00f6lerek, kalan\u0131 solundaki de\u011fi\u015fkene aktar\u0131r.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Mant\u0131ksal Operat\u00f6rler<\/h3>\n<p>Ayn\u0131 zamanda <span style=\"color:#0000ff;\">boolean <\/span>operat\u00f6rlerde denir. Mant\u0131ksal operat\u00f6rlerle <span style=\"color:#0000ff;\">true<\/span> ve <span style=\"color:#0000ff;\">false<\/span> olmak \u00fczere iki de\u011fer \u00fczerinde i\u015flem yap\u0131l\u0131r.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"94\">\n<p style=\"text-align:center;\"><strong>Operat\u00f6r<\/strong><\/p>\n<\/td>\n<td width=\"113\">\n<p style=\"text-align:center;\"><strong>\u0130smi<\/strong><\/p>\n<\/td>\n<td width=\"247\">\n<p style=\"text-align:center;\"><strong>A\u00e7\u0131klama<\/strong><\/p>\n<\/td>\n<td width=\"150\">\n<p style=\"text-align:center;\"><strong>\u00d6rnek<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"94\">\n<p style=\"text-align:center;\">&amp;<\/p>\n<\/td>\n<td width=\"113\">\n<p style=\"text-align:center;\">VE<\/p>\n<\/td>\n<td width=\"247\"><span style=\"color:#0000ff;\">true<\/span> de\u011feri almas\u0131 i\u00e7in iki de\u011fi\u015fkende <span style=\"color:#0000ff;\">true<\/span> olmal\u0131d\u0131r.<\/td>\n<td width=\"150\"><span style=\"color:#0000ff;\">true<\/span> &amp; <span style=\"color:#0000ff;\">true<\/span> = <span style=\"color:#0000ff;\">true<\/span><\/p>\n<p><span style=\"color:#0000ff;\">true<\/span> &amp; <span style=\"color:#0000ff;\">false<\/span> = <span style=\"color:#0000ff;\">false<\/span><\/p>\n<p><span style=\"color:#0000ff;\">false<\/span> &amp; <span style=\"color:#0000ff;\">true<\/span> = <span style=\"color:#0000ff;\">false<\/span><\/p>\n<p><span style=\"color:#0000ff;\">false<\/span> &amp; <span style=\"color:#0000ff;\">false<\/span> = <span style=\"color:#0000ff;\">false<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"94\">\n<p style=\"text-align:center;\">|<\/p>\n<\/td>\n<td width=\"113\">\n<p style=\"text-align:center;\">VEYA<\/p>\n<\/td>\n<td width=\"247\">De\u011fi\u015fkenlerden herhangi biri <span style=\"color:#0000ff;\">true<\/span> ise <span style=\"color:#0000ff;\">true<\/span> \u00fcretir. Sadece iki tarafda <span style=\"color:#0000ff;\">false<\/span> ise <span style=\"color:#0000ff;\">false<\/span> de\u011feri \u00fcretilir.<\/td>\n<td width=\"150\"><span style=\"color:#0000ff;\">true<\/span> | <span style=\"color:#0000ff;\">true<\/span> = <span style=\"color:#0000ff;\">true<\/span><\/p>\n<p><span style=\"color:#0000ff;\">true<\/span> | <span style=\"color:#0000ff;\">false<\/span> = <span style=\"color:#0000ff;\">true<\/span><\/p>\n<p><span style=\"color:#0000ff;\">false<\/span> | <span style=\"color:#0000ff;\">true<\/span> = <span style=\"color:#0000ff;\">true<\/span><\/p>\n<p><span style=\"color:#0000ff;\">false<\/span> | <span style=\"color:#0000ff;\">false<\/span> = <span style=\"color:#0000ff;\">false<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"94\">\n<p style=\"text-align:center;\">&amp;&amp;<\/p>\n<\/td>\n<td width=\"113\">\n<p style=\"text-align:center;\">VE DE\u011e\u0130L<\/p>\n<\/td>\n<td width=\"247\">E\u011fer ilk de\u011fi\u015fken <span style=\"color:#0000ff;\">true<\/span> ise and ger\u00e7ekle\u015fir. <span style=\"color:#0000ff;\">false<\/span> ise bak\u0131lmaks\u0131z\u0131n <span style=\"color:#0000ff;\">false<\/span> sonucu \u00fcretilir.<\/td>\n<td width=\"150\"><span style=\"color:#0000ff;\">false<\/span> &amp;&amp; i\u015flem yap\u0131lmayan de\u011fi\u015fken = <span style=\"color:#0000ff;\">false<\/span><\/p>\n<p><span style=\"color:#0000ff;\">true<\/span> &amp;&amp; <span style=\"color:#0000ff;\">true<\/span> = <span style=\"color:#0000ff;\">true<\/span><\/p>\n<p><span style=\"color:#0000ff;\">true<\/span> &amp;&amp; <span style=\"color:#0000ff;\">false<\/span> = <span style=\"color:#0000ff;\">false<\/span><\/p>\n<p>&nbsp;<\/td>\n<\/tr>\n<tr>\n<td width=\"94\">\n<p style=\"text-align:center;\">||<\/p>\n<\/td>\n<td width=\"113\">\n<p style=\"text-align:center;\">VEYA DE\u011e\u0130L<\/p>\n<\/td>\n<td width=\"247\">E\u011fer ilk de\u011fi\u015fken <span style=\"color:#0000ff;\">false<\/span> ise, or ger\u00e7ekle\u015fir. <span style=\"color:#0000ff;\">true<\/span> ise bak\u0131lmaks\u0131z\u0131n <span style=\"color:#0000ff;\">true<\/span> sonucu \u00fcretilir.<\/td>\n<td width=\"150\"><span style=\"color:#0000ff;\">true<\/span> || i\u015flem yap\u0131lmayan de\u011fi\u015fken = <span style=\"color:#0000ff;\">true<\/span><\/p>\n<p><span style=\"color:#0000ff;\">false<\/span> || <span style=\"color:#0000ff;\">true<\/span> = <span style=\"color:#0000ff;\">true<\/span><\/p>\n<p><span style=\"color:#0000ff;\">false<\/span> || <span style=\"color:#0000ff;\">false<\/span> = <span style=\"color:#0000ff;\">false<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"94\">\n<p style=\"text-align:center;\">^<\/p>\n<\/td>\n<td width=\"113\">\n<p style=\"text-align:center;\">\u00d6ZEL VEYA<\/p>\n<\/td>\n<td width=\"247\">\u0130ki de\u011fi\u015fkenden biri di\u011ferinden farkl\u0131 ise <span style=\"color:#0000ff;\">true<\/span> sonucu \u00fcretir.<\/td>\n<td width=\"150\"><span style=\"color:#0000ff;\">true<\/span> ^ <span style=\"color:#0000ff;\">true<\/span> = <span style=\"color:#0000ff;\">false<\/span><\/p>\n<p><span style=\"color:#0000ff;\">true<\/span> ^ <span style=\"color:#0000ff;\">false<\/span> = <span style=\"color:#0000ff;\">true<\/span><\/p>\n<p><span style=\"color:#0000ff;\">false<\/span> ^ <span style=\"color:#0000ff;\">true<\/span> = <span style=\"color:#0000ff;\">true<\/span><\/p>\n<p><span style=\"color:#0000ff;\">false<\/span> ^ <span style=\"color:#0000ff;\">false<\/span> = <span style=\"color:#0000ff;\">false<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"94\">\n<p style=\"text-align:center;\">!<\/p>\n<\/td>\n<td width=\"113\">\n<p style=\"text-align:center;\">DE\u011e\u0130L<\/p>\n<\/td>\n<td width=\"247\">De\u011fi\u015fkenin de\u011ferini tersine \u00e7evirir.<\/td>\n<td width=\"150\">! <span style=\"color:#0000ff;\">true<\/span> = <span style=\"color:#0000ff;\">false<\/span><\/p>\n<p>! <span style=\"color:#0000ff;\">false<\/span> = <span style=\"color:#0000ff;\">true<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"94\">\n<p style=\"text-align:center;\">??<\/p>\n<\/td>\n<td width=\"113\">\n<p style=\"text-align:center;\">NULL COALESCING<\/p>\n<\/td>\n<td width=\"247\">E\u011fer ilk de\u011fi\u015fken null ise, ikinci de\u011fer hesaplan\u0131r. Aksi takdirde ikinci de\u011fi\u015fken i\u015fleme konulmaz.<\/td>\n<td width=\"150\">\u00a0x ?? y<\/td>\n<\/tr>\n<tr>\n<td width=\"94\">\n<p style=\"text-align:center;\">?:<\/p>\n<\/td>\n<td width=\"113\">\n<p style=\"text-align:center;\">KO\u015eUL<\/p>\n<\/td>\n<td width=\"247\">\u00a0E\u011fer x de\u011feri <span style=\"color:#0000ff;\">true<\/span> ise, y de\u011fi\u015fkeni hesaplan\u0131r, <span style=\"color:#0000ff;\">false<\/span> ise z hesaplan\u0131r.<\/td>\n<td width=\"150\">\u00a0x ?: y : z<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Kar\u015f\u0131la\u015ft\u0131rma Operat\u00f6rleri<\/h3>\n<table>\n<tbody>\n<tr>\n<td width=\"302\">\n<p style=\"text-align:center;\">&gt;<\/p>\n<\/td>\n<td width=\"302\">B\u00fcy\u00fckt\u00fcr<\/td>\n<\/tr>\n<tr>\n<td width=\"302\">\n<p style=\"text-align:center;\">&lt;<\/p>\n<\/td>\n<td width=\"302\">K\u00fc\u00e7\u00fckt\u00fcr<\/td>\n<\/tr>\n<tr>\n<td width=\"302\">\n<p style=\"text-align:center;\">&gt;=<\/p>\n<\/td>\n<td width=\"302\">B\u00fcy\u00fck ya da e\u015fittir<\/td>\n<\/tr>\n<tr>\n<td width=\"302\">\n<p style=\"text-align:center;\">&lt;=<\/p>\n<\/td>\n<td width=\"302\">K\u00fc\u00e7\u00fck ya da e\u015fittir<\/td>\n<\/tr>\n<tr>\n<td width=\"302\">\n<p style=\"text-align:center;\">==<\/p>\n<\/td>\n<td width=\"302\">E\u015fittir<\/td>\n<\/tr>\n<tr>\n<td width=\"302\">\n<p style=\"text-align:center;\">!<\/p>\n<\/td>\n<td width=\"302\">De\u011fil<\/td>\n<\/tr>\n<tr>\n<td width=\"302\">\n<p style=\"text-align:center;\">!=<\/p>\n<\/td>\n<td width=\"302\">E\u015fit De\u011fil<\/td>\n<\/tr>\n<tr>\n<td width=\"302\">\n<p style=\"text-align:center;\">&#8211;&gt;<\/p>\n<\/td>\n<td width=\"302\">Uzakla\u015fma operat\u00f6r\u00fc<\/td>\n<\/tr>\n<tr>\n<td width=\"302\">\n<p style=\"text-align:center;\">&lt;&#8211;<\/p>\n<\/td>\n<td width=\"302\">Yak\u0131nla\u015fma operat\u00f6r\u00fc<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Arkada\u015flar operat\u00f6rleri internette pek \u00e7ok yerde g\u00f6rebilirsiniz ama\u00a0\u00e7o\u011funun eksikleri oldu\u011funu farkettim. Di\u011fer operat\u00f6rleri de es ge\u00e7memek laz\u0131m diyerek, ba\u015fl\u0131yorum. Aritmetik Operat\u00f6rler Matematiksel i\u015flemlerin ger\u00e7ekle\u015fmesi i\u00e7in kullan\u0131l\u0131rlar. + Toplama &#8211; \u00c7\u0131karma * \u00c7arpma ^ \u00dcs Alma \/ B\u00f6lme % Mod Aktarma Operat\u00f6rleri De\u011fi\u015fkenlere de\u011fer aktarmak amac\u0131 ile kullan\u0131l\u0131rlar. += Solundaki de\u011fi\u015fken ile sa\u011f\u0131ndakini toplayarak, sonucu solundaki [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[23,143,29,30,52,77,88,96,128,129],"class_list":["post-127","post","type-post","status-publish","format-standard","hentry","category-programlama","tag-23","tag-143","tag-arikmetiksel","tag-atama","tag-degil","tag-karsilastirma","tag-mantiksal","tag-operatorler","tag-ve","tag-veya"],"_links":{"self":[{"href":"https:\/\/serkanyarar.com.tr\/blog\/wp-json\/wp\/v2\/posts\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/serkanyarar.com.tr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serkanyarar.com.tr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serkanyarar.com.tr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serkanyarar.com.tr\/blog\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":0,"href":"https:\/\/serkanyarar.com.tr\/blog\/wp-json\/wp\/v2\/posts\/127\/revisions"}],"wp:attachment":[{"href":"https:\/\/serkanyarar.com.tr\/blog\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serkanyarar.com.tr\/blog\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serkanyarar.com.tr\/blog\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}