Printer Friendly
The Free Dictionary
1,037,617,124 visitors served.
?
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

C

   Also found in: Dictionary/thesaurus, Medical, Legal, Financial, Acronyms, Wikipedia, Hutchinson 0.03 sec.

C, letter of the alphabet

C, third letter of the alphabet alphabet [Gr. alpha-beta, like Eng. ABC], system of writing , theoretically having a one-for-one relation between character (or letter) and phoneme (see phonetics ). Few alphabets have achieved the ideal exactness.
..... Click the link for more information.
. In position and form, but not in meaning, it corresponds to Greek gamma (see G G, 7th letter of the alphabet . It is a usual symbol for a voiced velar stop, as in the English go. It was originally a differentiated form of Greek gamma, which has C as its formal Roman correspondent.
..... Click the link for more information.
). In English it is pronounced variously, e.g., in can, cent, church, and loch. In musical notation musical notation, symbols used to make a written record of musical sounds.

Two different systems of letters were used to write down the instrumental and the vocal music of ancient Greece. In his five textbooks on music theory Boethius (c.A.D. 470–A.D.
..... Click the link for more information.
 it symbolizes a note in the scale. In chemistry it is the symbol of the element carbon carbon [Lat.,=charcoal], nonmetallic chemical element; symbol C; at. no. 6; at. wt. 12.011; m.p. about 3,550°C;; graphite sublimes about 3,375°C;; b.p. 4,827°C;; sp. gr. 1.8–2.1 (amorphous), 1.9–2.3 (graphite), 3.15–3.
..... Click the link for more information.
. The capital letter is the Roman numeral for 100.

C, computer language

C: see programming language programming language, syntax, grammar, and symbols or words used to give instructions to a computer .

Development of Low-Level Languages



All computers operate by following machine language programs, a long sequence of instructions called machine code
..... Click the link for more information.
.

C

High-level procedural computer programming language with many low-level features, including the ability to handle memory addresses and bits. It is highly portable among platforms and therefore widely used in industry and among computer professionals. C was developed by Dennis M. Ritchie (born 1941) of Bell Laboratories in 1972. The operating system UNIX was written almost exclusively in C, and C has been standardized as part of POSIX (Portable Operating System Interface for UNIX).


(1) See coulomb.

(2) A high-level programming language developed at Bell Labs that is able to manipulate the computer at a low level like assembly language. During the last half of the 1980s, C became the language of choice for developing commercial software. C, and its object-oriented successor C++, are used to write a huge variety of applications and almost all operating systems. There are C/C++ compilers for all major operating systems and hardware platforms. C was standardized by ANSI (X3J11 committee) and ISO in 1989. See C++ and C#.

Nothing But Functions
C and C++ are written as a series of functions that call each other for processing. Even the body of the program is a function named "main." Functions are very flexible, allowing programmers to choose from the standard library that comes with the compiler, to use third party libraries or to develop their own.

Its Origin
C was developed to allow Unix to run on a variety of computers. After Bell Labs' Ken Thompson and Dennis Ritchie created Unix and got it running on several PDP computers, they wanted a way to easily port it to other machines without having to rewrite it from scratch. Thompson created the B language, which was a simpler version of the BCPL language, itself a version of CPL. Later, in order to improve B, Thompson and Ritchie created C.

Compared to many other high-level programming languages, C appears somewhat cryptic. The following C example converts Fahrenheit to centigrade:

     main()   {
     float fahr;
     printf("Enter Fahrenheit ");
     scanf("%f", &fahr);
     printf("Celsius is %f\n", (fahr-32)*5/9);
              }


The DOS Version in C
Following is the main event loop in the first software engine used for this Encyclopedia. Written in Turbo C, the main loop of an interactive program repeats continuously, testing all possible menu selections, keystrokes and mouse clicks that the user may enter.

The WHILE (1) statement below creates a continuous loop. An instruction at the END OF EVENT LOOP points to the beginning of the loop.

The names with double parentheses are the names of subroutines, for example, bookmark(). When bookmark() is called, the instructions in the bookmark function set the bookmark and control is returned to the BREAK. The BREAK ends the loop in order to start over at the beginning.

  /*********** MAIN EVENT LOOP **********/

 while (1)        /* BEGINNING OF LOOP */
  {

   while (!charwait())  if (mouse) testMOUSE();

   if (mouse)
    {
      if (mouseDOWNinText)
           {
      mouseDOWNinText=0;
      CLICK=1;
      unHighLightALL();
           }
    }


  key1=getch();   /* get keystroke from keyboard */
  if (key1==0)    /* if 0, a second character is */
  {               /*  required (key2)            */
   key2=getch();  /* get second character        */
   switch (key2)  {     /* test contents of key2 */
    case 59: HelpTopic=NO;
             HelpRoutine(); break;   /* F1*/
    case 68: main_menu();   break;   /*F10*/
    case 61: PrevHistory(); break;   /* F3*/
    case 62: NextHistory(); break;   /* F4*/
    case 63: bookmark();    break;   /* F5*/
    case 64: findmark();    break;   /* F6*/
    case 71: home_key();    break;
    case 79: end_key();     break;
    case 75: left_arrow();  break;
    case 77: left_arrow();  break;
    case 72: up_arrow();    break;
    case 80: down_arrow();  break;
    case 73: pageup();      break;
    case 81: pagedown();    break;
    case 132: ctrl_PgUp();  break;
    case 118: ctrl_PgDn();  break;
               }
  }
 else
    {
   switch (key1)  {
    case 8:  backspace();    break;
    case 9:  left_arrow();   break;   /*Tab*/
    case 127: ctrl_bsp();    break;
    case 13: return_key();   break;
    case 27: escape_key();   break;
    case 2:  bookmark();     break;  /*Ctrl-B*/
    case 6:  findmark();     break;  /*Ctrl-F*/
    case 24: alldone();              /*Ctrl-X*/
    case 17: alldone();              /*Ctrl-Q*/
    default: dataentry();    break;
               }
    }

  } /** END OF EVENT LOOP **/


(language)C - A programming language designed by Dennis Ritchie at AT&T Bell Labs ca. 1972 for systems programming on the PDP-11 and immediately used to reimplement Unix.

It was called "C" because many features derived from an earlier compiler named "B". In fact, C was briefly named "NB". B was itself strongly influenced by BCPL. Before Bjarne Stroustrup settled the question by designing C++, there was a humorous debate over whether C's successor should be named "D" or "P" (following B and C in "BCPL").

C is terse, low-level and permissive. It has a macro preprocessor, cpp.

Partly due to its distribution with Unix, C became immensely popular outside Bell Labs after about 1980 and is now the dominant language in systems and microcomputer applications programming. It has grown popular due to its simplicity, efficiency, and flexibility. C programs are often easily adapted to new environments.

C is often described, with a mixture of fondness and disdain, as "a language that combines all the elegance and power of assembly language with all the readability and maintainability of assembly language".

Ritchie's original C, known as K&R C after Kernighan and Ritchie's book, has been standardised (and simultaneously modified) as ANSI C.

See also ACCU, ae, c68, c386, C-Interp, cxref, dbx, dsp56k-gcc, dsp56165-gcc, gc, GCT, GNU C, GNU superoptimiser, Harvest C, malloc, mpl, Pthreads, ups.

?Page tools
Printer friendly
Cite / link
Email
Feedback
? Mentioned in
No references found
 
Encyclopedia browser? ? Full browser
 
 
Encyclopedia
?

Disclaimer | Privacy policy | Feedback | Copyright © 2008 Farlex, Inc.
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.. Terms of Use.