Faculty Publications

C: Power And Elegance.

Document Type

Article

Journal/Book/Conference Title

Microcomputing

Volume

8

Issue

8

First Page

76

Last Page

81

Abstract

C language created at Bell Laboratories is considered brief, powerful and elegant, combining both power and portability in one language. Its simple but powerful syntax reflects the latest ideas concerning modularity and structured programming. C provides the capability for several kinds of loops, switch statements and even the dreaded Goto statement. This latter is a reflection of C's existence in the real world of applications and systems programming. Rather than exclude a Goto because it can be (and often is) misused, C includes the Goto for the cases when it's really the most efficient means of accomplishing a task. C operates by means of functions that may or may not return a value to the calling program. Two examples show a program that prints all prime numbers between 2 and 32767 and another to compute factorials. A comparison with Basic is also furnished.

Original Publication Date

8-1-1984

This document is currently not available here.

Share

COinS