All Topics  
B programming language

 

   Email Print
   Bookmark   Link

 

B programming language


 
 

Example

The 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

  • , Dennis M. RitchieDennis Ritchie

    Dennis MacAlistair Ritchie is a computer scientist notable for his influence on ALTRAN, B, BCPL, C, Multics, and Unix....
    . Puts B in the context of BCPLBCPL

    BCPL is a computer programming language that was designed by Martin Richards of the University of Cambridge in 1966; it was...
     and CC (programming language)

    The C programming language is a general-purpose, procedural, imperative computer programming language developed in the earl...
    .
  • , Ken Thompson. Describes the PDP-11PDP-11 Overview

    The PDP-11 was a series of 16-bit minicomputers sold by Digital Equipment Corp....
     version.
  • , S. C. Johnson & B. W. Kernighan, Technical Report CS TR 8, Bell LabsBell Labs

    Bell Laboratories was the main research and development arm of the United States Bell System....
     (January 1973). The GCOSGeneral Comprehensive Operating System

    GCOS /jee'kohs/ is a family of Operating Systems orientated toward mainframes....
     version on HoneywellHoneywell

    Honeywell is a major American multinational corporation that produces electronic control systems and automation equipment....
     equipment.

See also

  • The B-MethodB-Method Summary

    B is a tool-supported formal method based around AMN, used in the development of computer software....
    , a formal method with its own Abstract Machine NotationAbstract Machine Notation

    Abstract Machine Notation is a specification language and programming language for specifying abstract machines in the B-Met...
     (AMN), not to be confused with the B programming language.


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 MeertensLambert Meertens

Lambert Meertens is a Dutch Computer Scientist and Professor....
, CWINational Research Institute for Mathematics and Computer Science

The National Research Institute for Mathematics and Computer Science is located in Amsterdam, The Netherlands and was founde...
, Amsterdam, 1981. (No longer available as of 30 December 2004.)