1 Lab
1 Lab
1 Lab
PROGRAMMING IN C
Programming
Programming Language
Where is C useful?
C’s ability to communicate directly with hardware makes it a powerful choice for system
programmers. In fact, popular operating systems such as Unix and Linux are written entirely
in C. Additionally, even compilers and interpreters for other languages such as FORTRAN,
Pascal, and BASIC are written in C. However, C’s scope is not just limited to developing
system programs. It is also used to develop any kind of application, including complex
business ones. The following is a partial list of areas where C language is used:
Ø Embedded Systems
Ø Systems Programming
Ø Artificial Intelligence
Ø Industrial Automation
Ø Computer Graphics
Ø Space Research
C is simple.
There are only 32 keywords so C is very easy to master. Keywords are words that
have special meaning in C language.
C programs run faster than programs written in most other languages.
C enables easy communication with computer hardware making it easy to write
system programs such as compilers and interpreters.
2. Open c:\tc\bin\tc.exe
3. A window appears
#include <stdio.h>
void main()
printf(“hello”);
Note:
1. C is case sensitive
main() is a function which the staring point for complier to start compilation. So a function
must contain a main() function.