About: Standard swap

An Entity of Type: programming language, from Named Graph: http://dbpedia.org, within Data Space: dbpedia.org

In computer science, the standard swap or three point turn is a programming paradigm that exchanges the values of two variables. By using a third variable, whose value is otherwise of no concern, to hold the value of the first, and then assigning the second's to the first, and the third's back to the second, the values of the first two are swapped. For example: 1. * let temp = b 2. * let b = a 3. * let a = temp In modern CPUs this is accomplished on the processor itself, in a single machine instruction, rather than having to go through RAM. * v * t * e

Property Value
dbo:abstract
  • In computer science, the standard swap or three point turn is a programming paradigm that exchanges the values of two variables. By using a third variable, whose value is otherwise of no concern, to hold the value of the first, and then assigning the second's to the first, and the third's back to the second, the values of the first two are swapped. For example: 1. * let temp = b 2. * let b = a 3. * let a = temp In modern CPUs this is accomplished on the processor itself, in a single machine instruction, rather than having to go through RAM. * v * t * e (en)
dbo:wikiPageID
  • 28716157 (xsd:integer)
dbo:wikiPageLength
  • 835 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID
  • 839797696 (xsd:integer)
dbo:wikiPageWikiLink
dbp:date
  • December 2010 (en)
dbp:reason
  • How modern? (en)
dbp:wikiPageUsesTemplate
dcterms:subject
gold:hypernym
rdf:type
rdfs:comment
  • In computer science, the standard swap or three point turn is a programming paradigm that exchanges the values of two variables. By using a third variable, whose value is otherwise of no concern, to hold the value of the first, and then assigning the second's to the first, and the third's back to the second, the values of the first two are swapped. For example: 1. * let temp = b 2. * let b = a 3. * let a = temp In modern CPUs this is accomplished on the processor itself, in a single machine instruction, rather than having to go through RAM. * v * t * e (en)
rdfs:label
  • Standard swap (en)
owl:sameAs
prov:wasDerivedFrom
foaf:isPrimaryTopicOf
is foaf:primaryTopic of
Powered by OpenLink Virtuoso    This material is Open Knowledge     W3C Semantic Web Technology     This material is Open Knowledge    Valid XHTML + RDFa
This content was extracted from Wikipedia and is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License