「丙語」:各本之異

文出維基大典
[初定本][初定本]
刪去的內容 新增的內容
Mr.Yim
無編輯摘要
Mr.Yim
無編輯摘要
第一行: 第一行:
'''丙語''',俗曰C語言,計算機語言是也。所用甚廣,夫程式者,皆可以丙成之。<ref>{{ Cite book | author = Brian W. Kernighan and Dennis M. Ritchie | title = The C programming Language | publisher = Prentice-Hall | date = 1988 | ISBN = 0-13-110362-8 | language = en | quote = In C, all function arguments are passed ``by value.'' }}</ref>
'''丙語''',俗曰C語言,計算機語言是也。所用甚廣,夫程式者,皆可以丙成之。<ref>{{ Cite book | author = Brian W. Kernighan and Dennis M. Ritchie | title = The C programming Language | publisher = Prentice-Hall | date = 1988 | ISBN = 0-13-110362-8 | language = en | quote = In C, all function arguments are passed ``by value.'' }}</ref>


==Hello, world範例==
== <nowiki>例「世界無恙」{{按|Hello, world!}} ==


<syntaxhighlight lang="c" line="1o">
<syntaxhighlight lang="c" line="1o">

二〇二〇年六月二〇日 (六) 〇六時四四分審

丙語,俗曰C語言,計算機語言是也。所用甚廣,夫程式者,皆可以丙成之。[一]

<nowiki>例「世界無恙」Hello, world!

#include <stdio.h>

int main(void)
{
    printf("Hello, world!\n");
    return 0;
}

考據

  1. Brian W. Kernighan and Dennis M. Ritchie The C programming Language  ; Prentice-Hall; 「In C, all function arguments are passed ``by value.(英文)