It also supports a rich library of functions which

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: er, modular procedure blocks and other features of the language allow the use of the various concepts of structured programming. SUMNUMS: PROCEDURE OPTIONS (MAIN); /* PROGRAM TO COMPUTE THE SUM OF 10 NUMBERS */ DECLARE (SUM, N) FIXED; DECLARE I FIXED; SUM = 0; DO 1= 1 TO 10;* GET (N); SUM = SUM + N; END; PUT EDIT ('THE SUM OF GIVEN NUMBERS = ', SUM) (A, F5); END; SOME MORE HIGH-LEVEL LANGUAGES The high-level programming languages that were discussed above are not necessarily the most important or most popular languages. These languages were presented in some detail to give you a better understanding of computer programming and nature of high-level languages in general. There are several other programming languages, which are equally important and popular. Some of these languages are described in this section. C and C++ C language was developed in 1972 at AT&T's Bell laboratories, USA by Dennis Ritchie and Brian Kernighan. Their objective was to develop a language which will have the virtues of high-level programming languages (mainly machine independence) with the efficiency of an assembly language. To meet this objective, C language was designed to have the following features: 1. It was developed as a compiled language (uses compiler as its translator) so that C language programs could be easily ported to other computers equipped with a C compiler. 2. It supports pointers with pointer operations. This feature allows the programmers to directly access the memory addresses where variables are stored and to perform bit-level manipulation of data stored in memory or processor registers. Pascal and PL/1 also supported pointers, but restricted their use. C language has minimal restrictions on the use of pointers allowing greater flexibility to programmers in writing efficient programs. 3. It supports user-defined data types for greater flexibility in programming. 4. It supports modular and structured programming concepts. That is, while writing a C program to solve a problem, th...
View Full Document

This document was uploaded on 04/07/2014.

Ask a homework question - tutors are online