|
ExampleThe following example is from the Users' Reference to B by Ken Thompson:
/* The following function will print a non-negative number, n, to the base b, where 2<=b<=10, This routine uses the fact that in the ASCII character set, the digits 0 to 9 have sequential code values. */
printn(n,b)
External links
See also
Another language, also called B, was a simple interactive programming language by Lambert Meertens and Steven Pemberton. This B was the predecessor of ABC.
- [ftp://ftp.uni-kl.de/pub/languages/B.tar.Z Draft Proposal for the B Programming Language], Lambert Meertens, CWI, Amsterdam, 1981. (No longer available as of 30 December 2004.)
|