Professional Documents
Culture Documents
WEEK – 2 TO WEEK 3
WHAT IS PROGRAMMING LANGUAGE
• JAVA
• RUBY
• PYTHON
• PEARL
•C
WHAT IS C LANGUAGE
• Easy to learn
• Structured language
• It produces efficient programs
• It can handle low-level activities
• It can be compiled on a variety of computer platforms – Middle-Level-
Language
FACTS ABOUT C LANGUAGE
• C was invented to write an operating system called UNIX.
• C is a successor of B language which was introduced around the early 1970s.
• The language was formalized in 1988 by the American National Standard
Institute (ANSI).
• The UNIX OS was totally written in C.
• Today C is the most widely used and popular System Programming Language.
• Most of the state-of-the-art software have been implemented using C.
• Today's most popular Linux OS and RDBMS MySQL have been written in C
EXAMPLE OF USES OF C LANGUAGE
• Operating Systems
• Language Compilers
• Assemblers
• Text Editors
• Print Spoolers
• Network Drivers
• Modern Programs
• Databases
• Language Interpreters
• Utilities
ADVANTAGE OF C LANGUAGE
• C is a small language, yet powerful - It has only 32 keywords (or reserved
words), which are the commands that make up the C Language.
• C is the native language of UNIX - C is the standard development language
for personal computers, Most Windows applications, database programs,
graphics libraries, and other large application are written in C.
• C code is very portable
ABOUT C LANGUAGE
• C is capable of running on more than one computer system or under more
than one OS.
• Easily transfer application programs written in C from one system to another
• C is portable mainly because the actual language definition is very small.
• The C language does not even have built-in routines for printing to the screen
or reading from the keyboard.
ABOUT C LANGUAGE
• C is portable mainly because the actual language definition is very small.
• C programs use a standard library that works the same in all machines.
• C is the foundation for C++ and Java.
• C is a small language, yet powerful
WHAT IS TURBO C
• Extended C Language
• Compiler
• Debugger
• Run-Time Environment
• User Interface.
HOW TO USE TURBO C
• A constant macro is a name that is replaced by a particular constant value before the program is
sent to the compiler.
• Example
#define pi_value 3.1416
COMMONLY USED INCLUDE FILES IN C
LANGUAGE
C PROGRAM STRUCTURE
• Declaration
• Functions
• Comments
• Identifiers
• Reserved words
IMPORTANCE OF COMMENTS ON
PROGRAMS