This document provides an introduction to C programming, including what C is, its history, key applications, and how C programs work. C is a general purpose, high-level programming language that is simple, efficient and widely used. It has been used to develop many software programs and operating systems. C was created in the 1970s and was influenced by earlier languages like ALGOL, BCPL, and B. C is commonly used for embedded systems, system applications, desktop applications, browsers/extensions, databases, and operating systems. Programs written in C can be compiled into machine-readable object files and linked to create executable files.
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
126 views
C Programming 1
This document provides an introduction to C programming, including what C is, its history, key applications, and how C programs work. C is a general purpose, high-level programming language that is simple, efficient and widely used. It has been used to develop many software programs and operating systems. C was created in the 1970s and was influenced by earlier languages like ALGOL, BCPL, and B. C is commonly used for embedded systems, system applications, desktop applications, browsers/extensions, databases, and operating systems. Programs written in C can be compiled into machine-readable object files and linked to create executable files.
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17
C programming
Lecture one What is C programming?
The C programming language is a general purpose , high
level – language (generally denoted as structure language). C programming is one of the most commonly used programming languages. It simple and efficient therefore it becomes best among all. It is used in all extents of application , mainly in the software development What is C programming? (cont’d)
Many software’s and applications as well as the
complier for other programming languages are written in C also operating system like Unix ,Dos and windows are written in C. What is C programming? (cont’d) It is essential to have a background in computer memory mechanisms because it is an important aspect when dealing with the C programming language. History of C language
The base or father of programming languages is
'ALGOL.' It was first introduced in 1960. 'ALGOL' was used on a large basis in European countries. 'ALGOL' introduced the concept of structured programming to the developer community. In 1967, a new computer programming language was announced called as 'BCPL' which stands for Basic Combined Programming Language History of C language (cont’d) BCPL was designed and developed by Martin Richards, especially for writing system software. This was the era of programming languages. Just after three years, in 1970 a new programming language called 'B' was introduced by Ken Thompson that contained multiple features of 'BCPL.' This programming language was created using UNIX operating system at AT&T and Bell Laboratories. Both the 'BCPL' and 'B' were system programming languages. History of C language (cont’d) In 1972, a great computer scientist Dennis Ritchie created a new programming language called 'C' at the Bell Laboratories. It was created from 'ALGOL', 'BCPL' and 'B' programming languages. 'C' programming language contains all the features of these languages and many more additional concepts that make it unique from other languages. History of C language (cont’d) Where is C used? Key Applications
1. 'C' language is widely used in embedded systems.
2. It is used for developing system applications. 3. It is widely used for developing desktop applications. 4. Most of the applications by Adobe are developed using 'C' programming language. 5. It is used for developing browsers and their extensions. Google's Chromium is built using 'C' programming language. Where is C used? Key Applications
6. It is used to develop databases. MySQL is the most
popular database software which is built using 'C'. 7. It is used in developing an operating system. Operating systems such as Apple's OS X, Microsoft's Windows, and Symbian are developed using 'C' language. It is used for developing desktop as well as mobile phone's operating system. 8. It is used for compiler production. 9. It is widely used in IOT applications. Why learn 'C'? As we studied earlier, 'C' is a base language for many programming languages. So, learning 'C' as the main language will play an important role while studying other programming languages. It shares the same concepts such as data types, operators, control statements and many more. 'C' can be used widely in various applications. It is a simple language and provides faster execution. Why learn 'C'?
'C' is a structured programming language in which
program is divided into various modules. Each module can be written separately and together it forms a single 'C' program. This structure makes it easy for testing, maintaining and debugging processes. 'C' contains 32 keywords, various data types and a set of powerful built-in functions that make programming very efficient. Another feature of 'C' programming is that it can extend itself. A 'C' program contains various functions which are part of a library. We can add our features and functions to the library. We can access and use these functions anytime we want in our program. This feature makes it simple while working with complex programming. Various compilers are available in the market that can be used for executing programs written in this language. It is a highly portable language which means programs written in 'C' language can run on other machines. This feature is essential if we wish to use or execute the code on another computer. How 'C' Works?
C is a compiled language. A compiler is a special tool
that compiles the program and converts it into the object file which is machine readable. After the compilation process, the linker will combine different object files and creates a single executable file to run the program. The following diagram shows the execution of a 'C' program Cont… Nowadays, various compilers are available online, and you can use any of those compilers. The functionality will never differ and most of the compilers will provide the features required to execute both 'C' and 'C++' programs. Following is the list of popular compilers available online: Clang compiler MinGW compiler (Minimalist GNU for Windows) Portable 'C' compiler Turbo C