Abstract
Dennis Ritchie developed the C programming language at Bell Labs in the late 1960s/early 1970s, and it became a popular general-purpose programming language. It is used for both systems programming and in application development and is widely used in industry. The language provides high-level and low-level capabilities, and the language is portable in that a C program written in ANSI C may be compiled for a very wide variety of computer platforms and operating systems (with minimal changes to the source code). C++ is an object-oriented extension of the C programming language, and it was designed to use the power of object-oriented programming and to maintain the speed and portability of C. It provides a significant extension of C’s capabilities, but it does not force the programmer to use the object-oriented features of the language.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
One common error in C programs is writing “=" instead of "==.” This totally alters the meaning of the statement.
- 2.
The semicolon in Pascal is used as a statement separator, whereas it is used as a statement terminator in C.
- 3.
It is easy to write a one line C program that is incomprehensible. The maintenance of poorly written code is a challenge unless programmers follow good programming practice. This discipline needs to be enforced by formal reviews of the source code.
References
Kernighan B, Ritchie D (1978) The C programming language, 1st edn. Prentice Hall Software Series, Englewood Cliffs
Stroustrup B (2013) C++ programming language, 4th edn. Addison Wesley, Upper Saddle River
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer Nature Switzerland AG
About this chapter
Cite this chapter
O’Regan, G. (2018). C and C++ Programming Languages. In: The Innovation in Computing Companion. Springer, Cham. https://doi.org/10.1007/978-3-030-02619-6_14
Download citation
DOI: https://doi.org/10.1007/978-3-030-02619-6_14
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-02618-9
Online ISBN: 978-3-030-02619-6
eBook Packages: Computer ScienceComputer Science (R0)