The ampersand, also known as the and sign, is the
logogram
In a written language, a logogram (from Ancient Greek 'word', and 'that which is drawn or written'), also logograph or lexigraph, is a written character that represents a semantic component of a language, such as a word or morpheme. Chine ...
, representing the
conjunction "and". It originated as a
ligature Ligature may refer to:
Language
* Ligature (writing), a combination of two or more letters into a single symbol (typography and calligraphy)
* Ligature (grammar), a morpheme that links two words
Medicine
* Ligature (medicine), a piece of suture us ...
of the letters of the word (
Latin
Latin ( or ) is a classical language belonging to the Italic languages, Italic branch of the Indo-European languages. Latin was originally spoken by the Latins (Italic tribe), Latins in Latium (now known as Lazio), the lower Tiber area aroun ...
for "and").
Etymology
Traditionally in English, when spelling aloud, any letter that could also be used as a word in itself ("A", "I", and "
O") was referred to by the
Latin
Latin ( or ) is a classical language belonging to the Italic languages, Italic branch of the Indo-European languages. Latin was originally spoken by the Latins (Italic tribe), Latins in Latium (now known as Lazio), the lower Tiber area aroun ...
expression ('by itself'), as in "''per se'' A" or "A ''per se'' A".
The character &, when used by itself as opposed to more extended forms such as ''&c.'', was similarly referred to as "and ''per se'' and". This last phrase was routinely slurred to "ampersand", and the term had entered common English usage by 1837.
[
It has been falsely claimed that ]André-Marie Ampère
André-Marie Ampère (, ; ; 20 January 177510 June 1836) was a French physicist and mathematician who was one of the founders of the science of classical electromagnetism, which he referred to as ''electrodynamics''. He is also the inventor of ...
used the symbol in his widely read publications and that people began calling the new shape "Ampère's and".
History
The ampersand can be traced back to the 1st century AD and the old Roman cursive
Roman cursive (or Latin cursive) is a form of handwriting (or a script) used in ancient Rome and to some extent into the Middle Ages. It is customarily divided into old (or ancient) cursive and new cursive.
Old Roman cursive
Old Roman cur ...
, in which the letters E and T occasionally were written together to form a ligature Ligature may refer to:
Language
* Ligature (writing), a combination of two or more letters into a single symbol (typography and calligraphy)
* Ligature (grammar), a morpheme that links two words
Medicine
* Ligature (medicine), a piece of suture us ...
(Evolution of the ampersand – figure 1). In the later and more flowing New Roman Cursive, ligatures of all kinds were extremely common; figures 2 and 3 from the middle of 4th century are examples of how the et-ligature could look in this script. During the later development of the Latin script leading up to Carolingian minuscule
Carolingian minuscule or Caroline minuscule is a script which developed as a calligraphic standard in the medieval European period so that the Latin alphabet of Jerome's Vulgate Bible could be easily recognized by the literate class from one ...
(9th century) the use of ligatures in general diminished. The et-ligature, however, continued to be used and gradually became more stylized and less revealing of its origin (figures 4–6).[Jan Tschichold]
"Formenwandlung der et-Zeichen."
/ref>
The modern italic type
In typography, italic type is a cursive font based on a stylised form of calligraphic handwriting. Along with blackletter and roman type, it served as one of the major typefaces in the history of Western typography.
Owing to the influence f ...
ampersand is a kind of " et" ligature that goes back to the cursive scripts developed during the Renaissance
The Renaissance ( , ) is a Periodization, period of history and a European cultural movement covering the 15th and 16th centuries. It marked the transition from the Middle Ages to modernity and was characterized by an effort to revive and sur ...
. After the advent of printing
Printing is a process for mass reproducing text and images using a master form or template. The earliest non-paper products involving printing include cylinder seals and objects such as the Cyrus Cylinder and the Cylinders of Nabonidus. The ...
in Europe in 1455, printers made extensive use of both the italic and Roman ampersands. Since the ampersand's roots go back to Roman times, many languages that use a variation of the Latin alphabet
The Latin alphabet, also known as the Roman alphabet, is the collection of letters originally used by the Ancient Rome, ancient Romans to write the Latin language. Largely unaltered except several letters splitting—i.e. from , and from � ...
make use of it.
The ampersand often appeared as a character at the end of the Latin alphabet, as for example in Byrhtferð's list of letters from 1011. Similarly, was regarded as the 27th letter of the English alphabet
Modern English is written with a Latin-script alphabet consisting of 26 Letter (alphabet), letters, with each having both uppercase and lowercase forms. The word ''alphabet'' is a Compound (linguistics), compound of ''alpha'' and ''beta'', t ...
, as taught to children in the US and elsewhere. An example may be seen in M. B. Moore's 1863 book ''The Dixie Primer, for the Little Folks''. In her 1859 novel '' Adam Bede'', George Eliot
Mary Ann Evans (22 November 1819 – 22 December 1880; alternatively Mary Anne or Marian), known by her pen name George Eliot, was an English novelist, poet, journalist, translator, and one of the leading writers of the Victorian era. She wrot ...
refers to this when she makes Jacob Storey say: "He thought it /nowiki> had only been put to finish off th' alphabet like; though ampusand would ha' done as well, for what he could see." The popular nursery rhyme Apple Pie ABC finishes with the lines "X, Y, Z, and ampersand, All wished for a piece in hand".
Similar characters
In Irish and Scottish Gaelic
Scottish Gaelic (, ; Endonym and exonym, endonym: ), also known as Scots Gaelic or simply Gaelic, is a Celtic language native to the Gaels of Scotland. As a member of the Goidelic language, Goidelic branch of Celtic, Scottish Gaelic, alongs ...
, the character () is used in place of the ampersand. This character is a survival of Tironian notes
Tironian notes () are a form of thousands of signs that were formerly used in a system of shorthand (Tironian shorthand) dating from the 1st century BCE and named after Marcus Tullius Tiro, Tiro, a personal secretary to Marcus Tullius Cicero, wh ...
, a medieval
In the history of Europe, the Middle Ages or medieval period lasted approximately from the 5th to the late 15th centuries, similarly to the post-classical period of World history (field), global history. It began with the fall of the West ...
shorthand
Shorthand is an abbreviated symbolic writing method that increases speed and brevity of writing as compared to Cursive, longhand, a more common method of writing a language. The process of writing in shorthand is called stenography, from the Gr ...
system. This character is known as the Tironian Et in English, the in Irish, and the in Scottish Gaelic.
The logical conjunction
In logic, mathematics and linguistics, ''and'' (\wedge) is the Truth function, truth-functional operator of conjunction or logical conjunction. The logical connective of this operator is typically represented as \wedge or \& or K (prefix) or ...
symbol, , is often pronounced "and," but is not related to the ampersand.
Writing the ampersand
In everyday handwriting
Handwriting in Italian schools (XXth - XXIst century)
Handwriting is the personal and unique style of writing with a writing instrument, such as a pen or pencil in the hand. Handwriting includes both block and cursive styles and is separa ...
, the ampersand is sometimes simplified in design as a large lowercase epsilon
Epsilon (, ; uppercase , lowercase or ; ) is the fifth letter of the Greek alphabet, corresponding phonetically to a mid front unrounded vowel or . In the system of Greek numerals it also has the value five. It was derived from the Phoenic ...
or a reversed numeral , superimposed by a vertical line. The ampersand is also sometimes shown as an epsilon with a vertical line above and below it or a dot above and below it.
The plus sign
The plus sign () and the minus sign () are mathematical symbols used to denote positive and negative functions, respectively. In addition, the symbol represents the operation of addition, which results in a sum, while the symbol represents ...
(itself based on an et-ligature) is often informally used in place of an ampersand, sometimes with an added loop and resembling . Other times it is a single stroke with a diagonal line connecting the bottom to the left side. This was a version of shorthand for ampersand, and the stroke economy of this version provided ease of writing for workers while also assuring the character was distinct from other numeric or alphabetic symbols.
Usage
Ampersands are commonly seen in business names formed from a partnership of two or more people, such as ''Johnson & Johnson
Johnson & Johnson (J&J) is an American multinational pharmaceutical, biotechnology, and medical technologies corporation headquartered in New Brunswick, New Jersey, and publicly traded on the New York Stock Exchange. Its common stock is a c ...
'', '' Dolce & Gabbana'', ''Marks & Spencer
Marks and Spencer plc (commonly abbreviated to M&S and colloquially known as Marks & Sparks or simply Marks) is a major British multinational retailer based in London, England, that specialises in selling clothing, beauty products, home produc ...
'' and ''Tiffany & Co
Tiffany & Co. (colloquially known as Tiffany's) is an American luxury goods, luxury jewelry and specialty design house headquartered on Fifth Avenue in Manhattan. Tiffany is known for its luxury goods, particularly its sterling silver and diam ...
'', as well as some abbreviations containing the word ''and'', such as ''AT&T
AT&T Inc., an abbreviation for its predecessor's former name, the American Telephone and Telegraph Company, is an American multinational telecommunications holding company headquartered at Whitacre Tower in Downtown Dallas, Texas. It is the w ...
'' (American Telephone and Telegraph), '' A&P'' (supermarkets), '' P&O'' (originally "Peninsular and Oriental", shipping and logistics company), ''R&D'' (research and development
Research and development (R&D or R+D), known in some countries as OKB, experiment and design, is the set of innovative activities undertaken by corporations or governments in developing new services or products. R&D constitutes the first stage ...
), ''D&B'' (drum and bass
Drum and bass (commonly abbreviated as DnB, D&B, or D'n'B) is a genre of electronic dance music characterised by fast Break (music)#Breakbeat (element of music), breakbeats (typically 165–185 Tempo, beats per minute) with heavy Bass (music) ...
), ''D&D'' (Dungeons & Dragons
''Dungeons & Dragons'' (commonly abbreviated as ''D&D'' or ''DnD'') is a fantasy tabletop role-playing game (TTRPG) originally created and designed by Gary Gygax and Dave Arneson. The game was first published in 1974 by TSR (company)#Tactical ...
), ''R&B'' (rhythm and blues
Rhythm and blues, frequently abbreviated as R&B or R'n'B, is a genre of popular music that originated within African American communities in the 1940s. The term was originally used by record companies to describe recordings marketed predomina ...
), ''B&B'' (bed and breakfast
A bed and breakfast (typically shortened to B&B or BnB) is a small lodging establishment that offers overnight accommodation and breakfast. In addition, a B&B sometimes has the hosts living in the house.
''Bed and breakfast'' is also used to ...
), and ''P&L'' (profit and loss
An income statement or profit and loss accountProfessional English in Use - Finance, Cambridge University Press, p. 10 (also referred to as a ''profit and loss statement'' (P&L), ''statement of profit or loss'', ''revenue statement'', ''statement o ...
).
In film
A film, also known as a movie or motion picture, is a work of visual art that simulates experiences and otherwise communicates ideas, stories, perceptions, emotions, or atmosphere through the use of moving images that are generally, sinc ...
credits for stories, screenplay
A screenplay, or script, is a written work produced for a film, television show (also known as a '' teleplay''), or video game by screenwriters (cf. ''stage play''). Screenplays can be original works or adaptations from existing pieces of w ...
s, etc., ''&'' indicates a closer collaboration than ''and''. The ampersand is used by the Writers Guild of America
The Writers Guild of America (WGA) is the name of two American labor unions representing writers in film, television, radio, and online media:
* The Writers Guild of America, East (WGAE) is headquartered in New York City and is affiliated wit ...
to denote two writers collaborating on a specific script, rather than one writer rewriting another's work. In screenplays, two authors joined with ''&'' collaborated on the script, while two authors joined with ''and'' worked on the script at different times and may not have consulted each other at all. In the latter case, they both contributed enough significant material to the screenplay to receive credit but did not work together. As a result, both & and ''and'' may appear in the same credit, as appropriate to how the writing proceeded.
In APA style
APA style (also known as APA format) is a writing style and format for academic documents such as Scientific journal, scholarly journal articles and books. It is commonly used for citing sources within the field of Behavioral sciences, behavior ...
, the ampersand is used when citing sources in text such as (Jones & Jones, 2005). In the list of references, an ampersand precedes the last author's name when there is more than one author. (This does not apply to MLA style
''MLA Handbook'' (9th ed., 2021), formerly ''MLA Handbook for Writers of Research Papers'' (1977–2009), establishes a system for documenting sources in scholarly writing. It is published by the Modern Language Association, which is based in t ...
, which calls for the "and" to be spelled.)
The phrase ("and the rest"), usually written as ''etc.'' can be abbreviated ''&c.'' representing the combination ''et'' + ''c(etera)''.
The ampersand can be used to indicate that the "and" in a listed item is a part of the item's name and not a separator (e.g. "Rock, pop, rhythm & blues and hip hop").
The ampersand may still be used as an abbreviation for "and" in informal writing regardless of how "and" is used.
Computing
Encoding and display
The character exists in many computer character sets, usually at 38 (26hex) from ASCII
ASCII ( ), an acronym for American Standard Code for Information Interchange, is a character encoding standard for representing a particular set of 95 (English language focused) printable character, printable and 33 control character, control c ...
. Unicode
Unicode or ''The Unicode Standard'' or TUS is a character encoding standard maintained by the Unicode Consortium designed to support the use of text in all of the world's writing systems that can be digitized. Version 16.0 defines 154,998 Char ...
provides the following variants:
*
*
*
*
*
*
*
*
*
*
The last six of these are carryovers from the Wingdings fonts, and are meant only for backward compatibility with those fonts.
On the QWERTY
QWERTY ( ) is a keyboard layout for Latin-script alphabets. The name comes from the order of the first six Computer keyboard keys#Types, keys on the top letter row of the keyboard: . The QWERTY design is based on a layout included in the Sh ...
keyboard layout
A keyboard layout is any specific physical, visual, or functional arrangement of the keys, legends, or key-meaning associations (respectively) of a computer keyboard, mobile phone, or other computer-controlled typographic keyboard. Standard keybo ...
, the ampersand is . It is almost always available on keyboard layouts, sometimes on or . On the AZERTY
AZERTY ( ) is a specific layout for the characters of the Latin alphabet on typewriter keys and computer keyboards. The layout takes its name from the first six letters to appear on the first row of alphabetical keys; that is, ( ). Like oth ...
keyboard layout, is an unmodified keystroke, positioned above .
Programming languages
In the 20th century, following the development of formal logic
Logic is the study of correct reasoning. It includes both formal and informal logic. Formal logic is the study of deductively valid inferences or logical truths. It examines how conclusions follow from premises based on the structure o ...
, the ampersand became a commonly used logical notation for the binary operator
In mathematics, a binary operation or dyadic operation is a rule for combining two elements (called operands) to produce another element. More formally, a binary operation is an operation of arity two.
More specifically, a binary operation o ...
or sentential connective '' AND''. This usage was adopted in computing.
Many languages with syntax derived from C, including C++, Perl
Perl is a high-level, general-purpose, interpreted, dynamic programming language. Though Perl is not officially an acronym, there are various backronyms in use, including "Practical Extraction and Reporting Language".
Perl was developed ...
, and more differentiate between:
* for bitwise AND is zero, is 4.
* for short-circuit logical AND
In logic, mathematics and linguistics, ''and'' (\wedge) is the truth-functional operator of conjunction or logical conjunction. The logical connective of this operator is typically represented as \wedge or \& or K (prefix) or \times or \cdo ...
is true.
In C, C++, and Go, a prefix is a unary operator denoting the address in memory of the argument, e.g. .
In C++ and PHP, unary prefix before a formal parameter of a function denotes pass-by-reference.
In Pascal, the as the first character of an identifier prevents the compiler from treating it as a keyword, thus '' escaping'' it.
In Fortran, the ampersand forces the compiler to treat two lines as one. This is accomplished by placing an ampersand at the end of the first line and at the beginning of the second line.
In many implementations of ALGOL 60
ALGOL 60 (short for ''Algorithmic Language 1960'') is a member of the ALGOL family of computer programming languages. It followed on from ALGOL 58 which had introduced code blocks and the begin and end pairs for delimiting them, representing a ...
the ampersand denotes the tens exponent of a real number.
In Common Lisp
Common Lisp (CL) is a dialect of the Lisp programming language, published in American National Standards Institute (ANSI) standard document ''ANSI INCITS 226-1994 (S2018)'' (formerly ''X3.226-1994 (R1999)''). The Common Lisp HyperSpec, a hyperli ...
, the ampersand is the prefix for lambda list keywords.
Ampersand is the string concatenation operator in many BASIC dialects, AppleScript
AppleScript is a scripting language created by Apple Inc. that facilitates automated control of Mac applications. First introduced in System 7, it is currently included in macOS in a package of automation tools. The term ''AppleScript'' may ...
, Lingo, HyperTalk
HyperTalk is a discontinued high-level, procedural programming language created in 1987 by Dan Winkler and used in conjunction with Apple Computer's HyperCard hypermedia program by Bill Atkinson. Because the main target audience of HyperTalk ...
, and FileMaker
FileMaker is a cross-platform relational database application developed by Claris International, a subsidiary of Apple Inc. It integrates a database engine with a graphical user interface ( GUI) and security features, allowing users to visu ...
. In Ada it applies to all one-dimensional arrays, not just strings.
BASIC-PLUS
BASIC-PLUS is an extended dialect of the BASIC programming language that was developed by Digital Equipment Corporation (DEC) for use on its RSTS/E time-sharing operating system for the PDP-11 series of 16-bit minicomputers in the early 1970s thro ...
on the DEC PDP-11
The PDP–11 is a series of 16-bit minicomputers originally sold by Digital Equipment Corporation (DEC) from 1970 into the late 1990s, one of a set of products in the Programmed Data Processor (PDP) series. In total, around 600,000 PDP-11s of a ...
uses the ampersand as a short form of the verb .
Applesoft BASIC used the ampersand as an internal command, not intended to be used for general programming, that invoked a machine language
In computer programming, machine code is computer code consisting of machine language instructions, which are used to control a computer's central processing unit (CPU). For conventional binary computers, machine code is the binaryOn nonb ...
program in the computer's ROM
Rom, or ROM may refer to:
Biomechanics and medicine
* Risk of mortality, a medical classification to estimate the likelihood of death for a patient
* Rupture of membranes, a term used during pregnancy to describe a rupture of the amniotic sac
* ...
.
In some versions of BASIC, unary suffix & denotes a variable is of type ''long'', or 32 bits in length.
The ampersand was occasionally used as a prefix to denote a hexadecimal
Hexadecimal (also known as base-16 or simply hex) is a Numeral system#Positional systems in detail, positional numeral system that represents numbers using a radix (base) of sixteen. Unlike the decimal system representing numbers using ten symbo ...
number, such as for decimal 255, for instance in BBC BASIC
BBC BASIC is an interpreted version of the BASIC programming language. It was developed by Acorn Computers Ltd when they were selected by the BBC to supply the computer for their BBC Literacy Project in 1981.
It was originally supplied on ...
. (The modern convention is to use "x" as a prefix to denote hexadecimal, thus .) Some other languages, such as the Monitor
Monitor or monitor may refer to:
Places
* Monitor, Alberta
* Monitor, Indiana, town in the United States
* Monitor, Kentucky
* Monitor, Oregon, unincorporated community in the United States
* Monitor, Washington
* Monitor, Logan County, Wes ...
built into ROM on the Commodore 128, used it to indicate octal
Octal (base 8) is a numeral system with eight as the base.
In the decimal system, each place is a power of ten. For example:
: \mathbf_ = \mathbf \times 10^1 + \mathbf \times 10^0
In the octal system, each place is a power of eight. For ex ...
instead, a convention that spread throughout the Commodore community and is now used in the VICE
A vice is a practice, behaviour, Habit (psychology), habit or item generally considered morally wrong in the associated society. In more minor usage, vice can refer to a fault, a negative character trait, a defect, an infirmity, or a bad or unhe ...
emulator.
In MySQL
MySQL () is an Open-source software, open-source relational database management system (RDBMS). Its name is a combination of "My", the name of co-founder Michael Widenius's daughter My, and "SQL", the acronym for Structured Query Language. A rel ...
, has dual roles. As well as a logical AND, it serves as the bitwise operator of an intersection between elements.
Dyalog APL uses ampersand similarly to Unix shells
A Unix shell is a command-line interpreter or shell
Shell may refer to:
Architecture and design
* Shell (structure), a thin structure
** Concrete shell, a thin shell of concrete, usually with no interior columns or exterior buttresses
Science ...
, spawning a separate green thread
In computer programming, a green thread is a thread that is scheduled by a runtime library or virtual machine (VM) instead of natively by the underlying operating system (OS). Green threads emulate multithreaded environments without relying on a ...
upon application of a function.
In more recent years, the ampersand has made its way into the Haskell
Haskell () is a general-purpose, statically typed, purely functional programming language with type inference and lazy evaluation. Designed for teaching, research, and industrial applications, Haskell pioneered several programming language ...
standard library, representing flipped function application
In mathematics, function application is the act of applying a function to an argument from its domain so as to obtain the corresponding value from its range. In this sense, function application can be thought of as the opposite of function abs ...
: means the same thing as .
Perl
Perl is a high-level, general-purpose, interpreted, dynamic programming language. Though Perl is not officially an acronym, there are various backronyms in use, including "Practical Extraction and Reporting Language".
Perl was developed ...
uses the ampersand as a sigil to refer to subroutines:
* In Perl 4 and earlier, it was effectively required to call user-defined subroutines
* In Perl 5, it can still be used to modify the way user-defined subroutines are called
* In Raku (formerly known as Perl 6), the ampersand sigil is only used when referring to a subroutine as an object, never when calling it
In the Xbase family of languages, which includes dBase
dBase (also stylized dBASE) was one of the first database management systems for microcomputers and the most successful in its day. The dBase system included the core database engine, a query system, a Form (programming), forms engine, and a pr ...
and FoxPro, a singe ampersand signifies macro substitution (where elements of program code are stored in a variable for evaluation at run time). A pair of consecutive ampersands marks the start of an in-line comment.
In MASM 80x86 Assembly Language, is the Substitution Operator, which tells the assembler to replace a macro parameter or text macro name with its actual value.
Ampersand is the name of a reactive programming language, which uses relation algebra
In mathematics and abstract algebra, a relation algebra is a residuated Boolean algebra expanded with an involution called converse, a unary operation. The motivating example of a relation algebra is the algebra 2''X'' 2 of all binary re ...
to specify information system
An information system (IS) is a formal, sociotechnical, organizational system designed to collect, process, Information Processing and Management, store, and information distribution, distribute information. From a sociotechnical perspective, info ...
s.
Text markup
In SGML
The Standard Generalized Markup Language (SGML; International Organization for Standardization, ISO 8879:1986) is a standard for defining generalized markup languages for documents. ISO 8879 Annex A.1 states that generalized markup is "based on t ...
, XML
Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing data. It defines a set of rules for encoding electronic document, documents in a format that is both human-readable and Machine-r ...
, and HTML
Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It defines the content and structure of web content. It is often assisted by technologies such as Cascading Style Sheets ( ...
, the ampersand is used to introduce an SGML entity In the Standard Generalized Markup Language (SGML), an entity is a primitive data type, which associates a string with either a unique alias (such as a user-specified name) or an SGML reserved word (such as #DEFAULT). Entities are foundational to t ...
, such as (for non-breaking space) or (for the Greek letter α). The HTML and XML encoding for the ampersand character is the entity . This can create a problem known as delimiter collision
A delimiter is a sequence of one or more characters for specifying the boundary between separate, independent regions in plain text, mathematical expressions or other data streams. An example of a delimiter is the comma character, which acts ...
when converting text into one of these markup languages. For instance, when putting URLs or other material containing ampersands into XML format files such as RSS files the & must be replaced with & or they are considered not well formed, and computers will be unable to read the files correctly. SGML derived the use from IBM Generalized Markup Language, which was one of many IBM-mainframe languages to use the ampersand to signal a text substitution, eventually going back to System/360
The IBM System/360 (S/360) is a family of mainframe computer systems announced by IBM on April 7, 1964, and delivered between 1965 and 1978. System/360 was the first family of computers designed to cover both commercial and scientific applicati ...
macro assembly language.
In the plain TeX
Tex, TeX, TEX, may refer to:
People and fictional characters
* Tex (nickname), a list of people and fictional characters with the nickname
* Tex Earnhardt (1930–2020), U.S. businessman
* Joe Tex (1933–1982), stage name of American soul singer ...
markup language
A markup language is a Encoding, text-encoding system which specifies the structure and formatting of a document and potentially the relationships among its parts. Markup can control the display of a document or enrich its content to facilitate au ...
, the ampersand is used to mark tabstops. The ampersand itself can be applied in TeX with . The Computer Modern fonts replace it with an "E.T." symbol in the (text italic) fonts, so it can be entered as in running text when using the default (Computer Modern) fonts.
In Microsoft Windows
Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
menus, labels, and other captions, the ampersand is used to denote the next letter as a keyboard shortcut (called an "Access key" by Microsoft). For instance setting a button label to makes it display as rint and for to be a shortcut equivalent to pressing that button. A double ampersand is needed in order to display a real ampersand. This convention originated in the first WIN32 api, and is used in Windows Forms
Windows Forms, also known as WinForms, is a free, open-source graphical user interface (GUI) class library for building Windows desktop applications, included as a part of Microsoft .NET, .NET Framework or Mono, providing a platform to write c ...
,[How to: Create Access Keys for Windows Forms Controls]
, from msdn.microsoft.com (but not WPF, which uses underscore for this purpose) and is also copied into many other toolkits on multiple operating systems. Sometimes this causes problems similar to other programs that fail to sanitize markup from user input, for instance Navision databases have trouble if this character is in either "Text" or "Code" fields.
Unix shells
Some Unix shells use the ampersand as a metacharacter
A metacharacter is a character that has a special meaning to a computer program, such as a shell interpreter or a regular expression (regex) engine.
In POSIX extended regular expressions, there are 14 metacharacters that must be ''escaped'' — ...
:
Some Unix shells, like the POSIX
The Portable Operating System Interface (POSIX; ) is a family of standards specified by the IEEE Computer Society for maintaining compatibility between operating systems. POSIX defines application programming interfaces (APIs), along with comm ...
standard sh
shell, use an ampersand to execute a process in the background and to duplicate file descriptor
In Unix and Unix-like computer operating systems, a file descriptor (FD, less frequently fildes) is a process-unique identifier (handle) for a file or other input/output resource, such as a pipe or network socket.
File descriptors typically h ...
s.
* In Bash, the ampersand can separate words, control the command history, duplicate file descriptors, perform logical operations, control jobs, and participate in regular expression
A regular expression (shortened as regex or regexp), sometimes referred to as rational expression, is a sequence of characters that specifies a match pattern in text. Usually such patterns are used by string-searching algorithms for "find" ...
s.
Web standards
The generic URL
A uniform resource locator (URL), colloquially known as an address on the Web, is a reference to a resource that specifies its location on a computer network and a mechanism for retrieving it. A URL is a specific type of Uniform Resource Identi ...
(Uniform Resource Locator) syntax allows for a query string
A query string is a part of a uniform resource locator ( URL) that assigns values to specified parameters. A query string commonly includes fields added to a base URL by a Web browser or other client application, for example as part of an HTML doc ...
to be appended to a file name in a web address so that additional information can be passed to a script; the question mark
The question mark (also known as interrogation point, query, or eroteme in journalism) is a punctuation, punctuation mark that indicates a question or interrogative clause or phrase in many languages.
History
The history of the question mark is ...
, or query mark, , is used to indicate the start of a query string. A query string is usually made up of a number of different name–value pairs, each separated by the ampersand symbol, . For example, . A "real" ampersand must be replaced by %26
to avoid interpretation as this syntax.
Typeface samples
Notes
See also
* And (disambiguation)
And or AND may refer to:
Logic, grammar and computing
* Conjunction, connecting two words, phrases, or clauses
* Logical conjunction in mathematical logic, notated as "∧", "⋅", "&", or simple juxtaposition
* Bitwise AND, a Boolean ope ...
* List of typographical symbols and punctuation marks
* Kai (abbreviation)
* Heta
* Tironian notes
Tironian notes () are a form of thousands of signs that were formerly used in a system of shorthand (Tironian shorthand) dating from the 1st century BCE and named after Marcus Tullius Tiro, Tiro, a personal secretary to Marcus Tullius Cicero, wh ...
* Ampersand curve
References
External links
*
The Hot Word at Dictionary.com: How ampersand came from a misunderstanding
.
"Ask the Editor: Ampersand", video at Merriam-Webster.com (2:01). Retrieved 2013-10-18
.
Font of 52 ampersands
designed by Frederic Goudy
{{navbox punctuation
Latin-script letters
Latin-script ligatures
Logic symbols
Typographical symbols
Graphemes
Punctuation