Professional Documents
Culture Documents
What is language ?
Language is medium of communication. If two persons want to communicate with each other , they have to use a common language. Like Hindi, English, Punjabi .
C++
JAVA
:
Types of Translator
SOURCE CODE
Compiler
OBJECT CODE
SOURCE CODE
Interpreter
OBJECT CODE
SOURCE CODE
Assembler
OBJECT CODE
Basics of C
Introduction of C
C was developed by Dennis Ritchie at AT & T bell laboratory of USA in 1972.
The Beginning of C
Application Areas Of C
C was initially used for systems programming. A system program forms a portion of the operating system of the computer or its support utilities. Operating Systems, Interpreters, Editors, Assembly programs are usually called system programs. The UNIX operating system was developed using C. There are C compilers available for almost all types of PCs.
A simple Program of C
/* Write a program to print Hello India*/ #include<stdio.h> void main() { printf(Hello India); } //Note- Here void is return type.
Comment about the program should be enclosed within /* & */. printf() is a function which is used to print messages on the screen. main() is a function from which execution of the program starts. Here stdio.h is a library file which contains standard input/output functions , keywords etc. #include<> is used to define the library file that is to be used in the program for compiler information.