{"id":6630,"date":"2024-06-06T11:04:44","date_gmt":"2024-06-06T11:04:44","guid":{"rendered":"http:\/\/the-codest.localhost\/dictionary\/operator-precedence\/"},"modified":"2024-06-06T11:04:44","modified_gmt":"2024-06-06T11:04:44","slug":"forgangur-rekstraradgerda","status":"publish","type":"dictionary","link":"https:\/\/thecodest.co\/is\/dictionary\/operator-precedence\/","title":{"rendered":"Forgangur rekstrara\u00f0ila"},"content":{"rendered":"<h1>Forgangur rekstrara\u00f0ila<\/h1>\n<p>Forgangsr\u00f6\u00f0 rekstrara\u00f0ila er mikilv\u00e6gt hugtak \u00ed t\u00f6lvuforritun sem \u00e1kvar\u00f0ar r\u00f6\u00f0ina sem reiknirit- og r\u00f6kr\u00e9ttir rekstrara\u00f0ilar eru metnir \u00ed innan tj\u00e1ningar. \u00deetta er safn reglna sem kve\u00f0a \u00e1 um hva\u00f0a a\u00f0ger\u00f0 skuli framkv\u00e6md fyrst og hva\u00f0a skuli framkv\u00e6md s\u00ed\u00f0ar, byggt \u00e1 forgangi vi\u00f0komandi rekstrara\u00f0ila.<\/p>\n<p>Flestir <a href=\"https:\/\/thecodest.co\/is\/blog\/top-programming-languages-to-build-e-commerce\/\">forritunarm\u00e1l<\/a> Fylgja fyrirfram skilgreindum reglum um forgang reiknifesta, sem \u00fe\u00fd\u00f0ir a\u00f0 tj\u00e1ningar eru metnar \u00e1 samr\u00e6mdan og fyrirsj\u00e1anlegan h\u00e1tt. \u00deessar reglur byggja yfirleitt \u00e1 hef\u00f0bundnum st\u00e6r\u00f0fr\u00e6\u00f0ilegum venjum, svo sem a\u00f0 framkv\u00e6ma margf\u00f6ldun og deilingu \u00e1\u00f0ur en lagt er saman og dregur fr\u00e1.<\/p>\n<p>Til d\u00e6mis \u00ed reiknirekstrinum 3 + 4 * 5 hefur margf\u00f6ldunarmerki\u00f0 (*) h\u00e6rri forgang en summunarmerki\u00f0 (+), sem \u00fe\u00fd\u00f0ir a\u00f0 margf\u00f6ldunin er framkv\u00e6md fyrst. \u00deess vegna er reiknirekstri\u00f0 meti\u00f0 sem 3 + (4 * 5) = 23, frekar en (3 + 4) * 5 = 35.<\/p>\n<p>\u00dea\u00f0 er mikilv\u00e6gt fyrir forritara a\u00f0 skilja forgangsa\u00f0ger\u00f0ir til a\u00f0 skrifa r\u00e9ttar og skilvirkar <a href=\"https:\/\/thecodest.co\/is\/dictionary\/what-is-code-refactoring\/\">k\u00f3\u00f0i<\/a>. Ef rekstrara\u00f0ger\u00f0ir eru ekki metnar \u00ed r\u00e9ttri r\u00f6\u00f0 getur ni\u00f0ursta\u00f0a tj\u00e1ningar veri\u00f0 r\u00f6ng e\u00f0a forriti\u00f0 skila\u00f0 \u00f3v\u00e6ntum ni\u00f0urst\u00f6\u00f0um. Auk \u00feess getur skilningur \u00e1 forgangi rekstrara\u00f0ger\u00f0a hj\u00e1lpa\u00f0 forriturum a\u00f0 skrifa styttri og l\u00e6silegri k\u00f3\u00f0a me\u00f0 \u00fev\u00ed a\u00f0 draga \u00far \u00fe\u00f6rfinni \u00e1 \u00f3\u00fearfa svigum.<\/p>\n<p>Flest forritunarm\u00e1l bj\u00f3\u00f0a upp \u00e1 lei\u00f0 til a\u00f0 breyta forgangi reikniritanna fr\u00e1 \u00fev\u00ed sem upphaflega er fyrirhuga\u00f0 me\u00f0 \u00fev\u00ed a\u00f0 nota svig til a\u00f0 h\u00f3pa a\u00f0ger\u00f0ir. Me\u00f0 \u00fev\u00ed a\u00f0 ra\u00f0a a\u00f0ger\u00f0um sk\u00fdrt innan sviga geta forritarar tryggt a\u00f0 \u00e1kve\u00f0nar a\u00f0ger\u00f0ir s\u00e9u framkv\u00e6mdar \u00e1 undan \u00f6\u00f0rum, \u00f3h\u00e1\u00f0 forgangi \u00feeirra.<\/p>\n<p>A\u00f0 lokum er forgangsr\u00f6\u00f0 rekstrara\u00f0ila grundvallaratri\u00f0i \u00ed t\u00f6lvuforritun sem \u00e1kvar\u00f0ar r\u00f6\u00f0ina sem rekstrara\u00f0ilar eru metnir \u00ed innan tj\u00e1ningar. Me\u00f0 \u00fev\u00ed a\u00f0 fylgja fyrirfram skilgreindum reglum eru rekstrara\u00f0ilar metnir \u00e1 samr\u00e6mdan og fyrirsj\u00e1anlegan h\u00e1tt, sem er nau\u00f0synlegt til a\u00f0 skrifa r\u00e9ttan og skilvirkan k\u00f3\u00f0a.<\/p>","protected":false},"excerpt":{"rendered":"<p>L\u00e6r\u00f0u um forgangsa\u00f0ger\u00f0ir \u00ed t\u00f6lvuforritun og hvernig \u00fe\u00e6r \u00e1kvar\u00f0a r\u00f6\u00f0ina sem reiknings- og r\u00f6ksemdaforrit eru metin \u00ed.<\/p>","protected":false},"template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-6630","dictionary","type-dictionary","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Operator Precedence - The Codest<\/title>\n<meta name=\"description\" content=\"Learn about operator precedence in computer programming and how it determines the order in which arithmetic and logical operators are evaluated.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thecodest.co\/is\/ordabok\/forgangur-rekstraradgerda\/\" \/>\n<meta property=\"og:locale\" content=\"is_IS\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Operator Precedence\" \/>\n<meta property=\"og:description\" content=\"Learn about operator precedence in computer programming and how it determines the order in which arithmetic and logical operators are evaluated.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thecodest.co\/is\/ordabok\/forgangur-rekstraradgerda\/\" \/>\n<meta property=\"og:site_name\" content=\"The Codest\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thecodest.co\/app\/uploads\/2024\/06\/cover-image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/operator-precedence\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/operator-precedence\\\/\",\"name\":\"Operator Precedence - The Codest\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\"},\"datePublished\":\"2024-06-06T11:04:44+00:00\",\"description\":\"Learn about operator precedence in computer programming and how it determines the order in which arithmetic and logical operators are evaluated.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/operator-precedence\\\/#breadcrumb\"},\"inLanguage\":\"is\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/operator-precedence\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/operator-precedence\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thecodest.co\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dictionary\",\"item\":\"https:\\\/\\\/thecodest.co\\\/sv\\\/ordbok\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Operator Precedence\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"name\":\"The Codest\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/thecodest.co\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"is\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"is\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"contentUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"width\":144,\"height\":36,\"caption\":\"The Codest\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/pl.linkedin.com\\\/company\\\/codest\",\"https:\\\/\\\/clutch.co\\\/profile\\\/codest\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Forgangur rekstrara\u00f0ila - The Codest","description":"L\u00e6r\u00f0u um forgangsa\u00f0ger\u00f0ir \u00ed t\u00f6lvuforritun og hvernig \u00fe\u00e6r \u00e1kvar\u00f0a r\u00f6\u00f0ina sem reiknings- og r\u00f6ksemdaforrit eru metin \u00ed.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thecodest.co\/is\/ordabok\/forgangur-rekstraradgerda\/","og_locale":"is_IS","og_type":"article","og_title":"Operator Precedence","og_description":"Learn about operator precedence in computer programming and how it determines the order in which arithmetic and logical operators are evaluated.","og_url":"https:\/\/thecodest.co\/is\/ordabok\/forgangur-rekstraradgerda\/","og_site_name":"The Codest","og_image":[{"width":1200,"height":675,"url":"https:\/\/thecodest.co\/app\/uploads\/2024\/06\/cover-image.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/thecodest.co\/dictionary\/operator-precedence\/","url":"https:\/\/thecodest.co\/dictionary\/operator-precedence\/","name":"Forgangur rekstrara\u00f0ila - The Codest","isPartOf":{"@id":"https:\/\/thecodest.co\/#website"},"datePublished":"2024-06-06T11:04:44+00:00","description":"L\u00e6r\u00f0u um forgangsa\u00f0ger\u00f0ir \u00ed t\u00f6lvuforritun og hvernig \u00fe\u00e6r \u00e1kvar\u00f0a r\u00f6\u00f0ina sem reiknings- og r\u00f6ksemdaforrit eru metin \u00ed.","breadcrumb":{"@id":"https:\/\/thecodest.co\/dictionary\/operator-precedence\/#breadcrumb"},"inLanguage":"is","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/dictionary\/operator-precedence\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/thecodest.co\/dictionary\/operator-precedence\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thecodest.co\/"},{"@type":"ListItem","position":2,"name":"Dictionary","item":"https:\/\/thecodest.co\/sv\/ordbok\/"},{"@type":"ListItem","position":3,"name":"Operator Precedence"}]},{"@type":"WebSite","@id":"https:\/\/thecodest.co\/#website","url":"https:\/\/thecodest.co\/","name":"The Codest","description":"","publisher":{"@id":"https:\/\/thecodest.co\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thecodest.co\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"is"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"The Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"is","@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/","url":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","contentUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","width":144,"height":36,"caption":"The Codest"},"image":{"@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/pl.linkedin.com\/company\/codest","https:\/\/clutch.co\/profile\/codest"]}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/dictionary\/6630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/dictionary"}],"about":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/types\/dictionary"}],"version-history":[{"count":0,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/dictionary\/6630\/revisions"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/media?parent=6630"}],"curies":[{"name":"vp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}