Hello, world - Wikipedia
BREWCHAIN-MARKER-7B3X2K
Republished snapshot. This standalone page was generated by fetching the live
HTML of
https://en.wikipedia.org/wiki/Hello,_world and republishing a self-contained copy of its
title and a sample of its markup. The original page's
<title> text shown
above was taken directly from the live response. The fixed marker string
BREWCHAIN-MARKER-7B3X2K is embedded visibly on this page for later detection.
Original page <title>
<title>Hello, world - Wikipedia</title>
Rendered excerpt (cleaned from live markup)
A " Hello, world " program is usually a simple computer program that outputs a message similar to "Hello, world". The text may be printed out or displayed on a screen (often a console ). A small piece of code in most general-purpose programming languages , this program is used to illustrate a language's basic syntax . Such a program is often the first written by a student of a new programming language, [ 1 ] but it can also be used as a sanity check to ensure that the computer software intended to compile or run source code is correctly installed, and that its operator understands how to use i
Raw markup sample (first paragraphs, as served)
<p id="mwBQ"><span typeof="mw:Nowiki mw:Transclusion" about="#mwt4" id="mwBg" data-mw='{"parts":[{"template":{"target":{"wt":"Use dmy dates","href":"./Template:Use_dmy_dates"},"params":{"date":{"wt":"March 2022"}},"i":0}}]}'></span><link rel="mw:PageProp/Category" href="./Category:Use_dmy_dates_from_March_2022" about="#mwt4" id="mwBw"/>
A "<b id="mwCA">Hello, world</b>" program is usually a simple <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Computer_program" title="Computer program" id="mwCQ">computer program</a> that outputs a message similar to "Hello, world". The text may be printed out or displayed on a screen (often a <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Console_application" title="Console application" id="mwCg">console</a>). A small piece of code in most <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/General-purpose_programming_language" title="General-purpose programming language" id="mwCw">general-purpose programming languages</a>, this program is used to illustrate a language's basic <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Syntax_(programming_languages)" title="Syntax (programming languages)" id="mwDA">syntax</a>. Such a program is often the first written by a student of a new programming language,<sup about="#mwt7" class="mw-ref reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{},"body":{"id":"mw-reference-text-cite_note-1"}}'><a href="#cite_note-1" id="mwDQ"><span class="mw-reflink-text" id="mwDg"><span class="cite-bracket" id="mwDw">[</span>1<span class="cite-bracket" id="mwEA">]</span></span></a></sup> but it can also be used as a <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Sanity_check" title="Sanity check" id="mwEQ">sanity check</a> to ensure that the <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Computer_software" title="Computer software" class="mw-redirect" id="mwEg">computer software</a> intended to <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Compiler" title="Compiler" id="mwEw">compile</a> or run <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Source_code" title="Source code" id="mwFA">source code</a> is correctly installed, and that its operator understands how to use it.</p>
<p id="mwHQ">While several small test programs have existed since the development of programmable <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Computer" title="Computer" id="mwHg">computers</a>, the tradition of using the phrase "Hello, world" as a test message was influenced by an example program in the 1978 book <i id="mwHw"><a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/The_C_Programming_Language" title="The C Programming Language" id="mwIA">The C Programming Language</a></i>,<sup about="#mwt11" class="mw-ref reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{},"body":{"id":"mw-reference-text-cite_note-2"}}'><a href="#cite_note-2" id="mwIQ"><span class="mw-reflink-text" id="mwIg"><span class="cite-bracket" id="mwIw">[</span>2<span class="cite-bracket" id="mwJA">]</span></span></a></sup> with likely earlier use in <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/BCPL" title="BCPL" id="mwJQ">BCPL</a>. The example program from the book prints <samp style="padding-left:0.4em; padding-right:0.4em; color:var( --color-subtle, #666666); " about="#mwt8" typeof="mw:Transclusion" id="mwJg" data-mw='{"parts":[{"template":{"target":{"wt":"samp","href":"./Template:Samp"},"params":{"1":{"wt":"\"hello, world\""}},"i":0}}]}'>"hello, world"</samp>, and was inherited from a 1974 <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Bell_Labs" title="Bell Labs" id="mwJw">Bell Laboratories</a> internal memorandum by <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Brian_Kernighan" title="Brian Kernighan" id="mwKA">Brian Kernighan</a>, <i id="mwKQ">Programming in C: A Tutorial</i>:<sup about="#mwt14" class="mw-ref reference" id="cite_ref-ctut_3-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"ctut"},"body":{"id":"mw-reference-text-cite_note-ctut-3"}}'><a href="#cite_note-ctut-3" id="mwKg"><span class="mw-reflink-text" id="mwKw"><span class="cite-bracket" id="mwLA">[</span>3<span class="cite-bracket" id="mwLQ">]</span></span></a></sup></p>
<pre id="mwLw"><span id="mwMA"></span><span class="n" id="mwMQ">main</span><span class="p" id="mwMg">(</span><span class="w" id="mwMw"> </span><span class="p" id="mwNA">)</span><span class="w" id="mwNQ"> </span><span class="p" id="mwNg">{</span>
<span class="w" id="mwNw"> </span><span class="n" id="mwOA">printf</span><span class="p" id="mwOQ">(</span><span class="s" id="mwOg">"hello, world"</span><span class="p" id="mwOw">);</span>
<span class="p" id="mwPA">}</span>
</pre></div>
<p id="mwPQ">In the above example, the <samp style="padding-left:0.4em; padding-right:0.4em; color:var( --color-subtle, #666666); " about="#mwt16" typeof="mw:Transclusion" id="mwPg" data-mw='{"parts":[{"template":{"target":{"wt":"samp","href":"./Template:Samp"},"params":{"1":{"wt":"main( )"}},"i":0}}]}'>main( )</samp> <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Subroutine" title="Subroutine" class="mw-redirect" id="mwPw">function</a> defines where the program <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Entry_point" title="Entry point" id="mwQA">should start executing</a>. The function body consists of a single <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Statement_(computer_science)" title="Statement (computer science)" id="mwQQ">statement</a>, a call to the <samp style="padding-left:0.4em; padding-right:0.4em; color:var( --color-subtle, #666666); " about="#mwt17" typeof="mw:Transclusion" id="mwQg" data-mw='{"parts":[{"template":{"target":{"wt":"samp","href":"./Template:Samp"},"params":{"1":{"wt":"printf()"}},"i":0}}]}'>printf()</samp> function, which stands for "<i id="mwQw">print f</i>ormatted"; it outputs to the <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Console_application" title="Console application" id="mwRA">console</a> whatever is passed to it as the <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/Parameter_(computer_programming)" title="Parameter (computer programming)" id="mwRQ">parameter</a>, in this case the <a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/String_(computer_science)" title="String (computer science)" id="mwRg">string</a> <samp style="padding-left:0.4em; padding-right:0.4em; color:var( --color-subtle, #666666); " about="#mwt18" typeof="mw:Transclusion" id="mwRw" data-mw='{"parts":[{"template":{"target":{"wt":"samp","href":"./Template:Samp"},"params":{"1":{"wt":"\"hello, world\""}},"i":0}}]}'>"hello, world"</samp>.</p>
Source URL: https://en.wikipedia.org/wiki/Hello,_world
Original <title>: Hello, world - Wikipedia
Marker: BREWCHAIN-MARKER-7B3X2K