Differences between version 21 and predecessor to the previous major change of C.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 21 | Last edited on Thursday, September 23, 2004 5:43:39 pm | by AristotlePagaltzis | Revert |
Older page: | version 11 | Last edited on Friday, November 21, 2003 9:31:25 pm | by AristotlePagaltzis | Revert |
@@ -1,56 +1,63 @@
One of the most widely recognised [ProgrammingLanguage]s in the world.
-It was designed by DennisRitchie (along with other famous people such as KenThompson and BrianKernighan) as the SystemsProgrammingLanguage
to write their portable [Unix] OperatingSystem in. It was originally derived from [BCPL] but evolved radically. [C] is a great SystemsProgrammingLanguage
, but blamed for many problems with applications which many complain it is unsuited for.
+It was designed by DennisRitchie at [BellLabs]/[AT&T]
(along with other famous people such as KenThompson and BrianKernighan) as the systems ProgrammingLanguage
to write their portable [Unix] OperatingSystem in. It was originally derived from [BCPL] but evolved radically. [C] is a great systems ProgrammingLanguage
, but blamed for many problems with applications which many complain it is unsuited for.
+
+The original version of [C] made many assumptions and led to [Lint] being written to check whether these assumptions were likely to be unsafe. Many of these assumptions were removed by the [ANSI] [C] standard and the remainder of [Lint]'s job merged into that of the [Compiler]s
.
From fortune(6):
-;;
C, n. : A ProgrammingLanguage that is sort of like [Pascal] except more like AssemblyLanguage except that it isn't very much like either one, or anything else. It is either the best language available to the art today, or it isn't. %%% -- Ray Simard
+*
C, n.::
+
A ProgrammingLanguage that is sort of like [Pascal] except more like AssemblyLanguage except that it isn't very much like either one, or anything else. It is either the best language available to the art today, or it isn't.
-and
+ -- Ray Simard
-;:
"The C Programming Language -- A language which combines the flexibility of AssemblyLanguage with the power of AssemblyLanguage."
+*
"The C Programming Language -- A language which combines the flexibility of AssemblyLanguage with the power of AssemblyLanguage."
-[C] has inspired an entire class of languages, including [C++] which some say fixes many problems with [C], while others debate is just a horrible mess. [Java] has decended from [C++] as a portable,
clean ObjectOrientatedProgrammingLanguage
, and which
in turn is
the inspiration for [CSharp],
MicrosoftCorporation's new language.
+[C] has inspired an entire class of languages, including [C++] which some say fixes many problems with [C], while others debate is just a horrible mess. [Java] has decended from [C++] as a portable language with
clean ObjectOrientation
, itself
in turn the inspiration for MicrosoftCorporation's new language called [CSharp]
.
-See the [C History|http://cm.bell-labs.com/cm/cs/who/dmr/chist.html].
+See the [C History | http://cm.bell-labs.com/cm/cs/who/dmr/chist.html].
-I recommend you learn [C], and use it for writing OperatingSystems
, and understanding how things actually are implemented, but then code in some other programming language
if you are going to write applications, especially networking programs.
+I recommend you learn [C], and use it for writing OperatingSystem~s
, and understanding how things actually are implemented, but then code in some other ProgrammingLanguage
if you are going to write applications, especially networking programs.
----
-The following example is a program to approximate the value of pi (Compile it with "gcc -traditional-cpp -o pi pi.c"). If you want a better approximation, increase the program's source code area :).
-
/*
-
* Program to compute an approximation of pi
-
* by Brian Westley, 1988
-
*/
+The following example is a program to approximate the value of pi. Compile it with <tt>gcc -traditional-cpp -o pi pi.c</tt>. If you want a better approximation, increase the program's source code area. <tt>:)</tt>
+
+<verbatim>
+
/*
+ * Program to compute an approximation of pi
+ * by Brian Westley, 1988
+ */
+
+#define _ -F<00||--F-OO--;
+int F=00,OO=00;
+main(){F_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO()
+{
+ _-_-_-_
+ _-_-_-_-_-_-_-_-_
+ _-_-_-_-_-_-_-_-_-_-_-_
+ _-_-_-_-_-_-_-_-_-_-_-_-_-_
+ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
+ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
+_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
+_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
+_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
+_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
+ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
+ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
+ _-_-_-_-_-_-_-_-_-_-_-_-_-_
+ _-_-_-_-_-_-_-_-_-_-_-_
+ _-_-_-_-_-_-_-_
+ _-_-_-_
+}
+</verbatim>
- #define _
-F<00||
--F-OO--;
- int F=00,OO=00;
- main(
){F_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO()
- {
- _-_-_-_
- _-_-_-_-_-_-_-_-_
- _-_-_-_-_-_-_-_-_-_-_-_
- _-_-_-_-_-_-_-_-_-_-_-_-_-_
- _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- _-_-_-_-_-_-_-_-_-_-_-_-_-_
- _-_-_-_-_-_-_-_-_-_-_-_
- _-_-_-_-_-_-_-_
- _-_-_-_
- }
+(As seen in JargonFile:Obfuscated
-C
-Contest
)
-(As seen in [JargonFile:Obfuscated-C-Contest.html])
----
Various snippets of information about [C] in the wiki:
* CastingPointerToFunction
-----
CategoryProgrammingLanguages, CategoryImperativeProgrammingLanguages, CategoryMachineOrientedProgrammingLanguages, CategorySystemsProgrammingLanguages