0% found this document useful (0 votes)
13 views2 pages

Introduction of C

C is a structured, high-level programming language developed in 1972. It divides programs into functions to make them modular and easier to design, code, test, and reuse. C is commonly used to develop system software like operating systems and compilers due to its low-level capabilities and efficiency. It supports basic data types like char, int, float, and double. C has advantages like being machine-independent, easy to learn, and the basis for many modern languages. However, it lacks runtime type checking and error detection, making large programs prone to bugs.

Uploaded by

Kalay Ro Son
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Introduction of C

C is a structured, high-level programming language developed in 1972. It divides programs into functions to make them modular and easier to design, code, test, and reuse. C is commonly used to develop system software like operating systems and compilers due to its low-level capabilities and efficiency. It supports basic data types like char, int, float, and double. C has advantages like being machine-independent, easy to learn, and the basis for many modern languages. However, it lacks runtime type checking and error detection, making large programs prone to bugs.

Uploaded by

Kalay Ro Son
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Introduction of C

1. Structured programming
The programming that follows a top- down approach, on which developers separate the
overall program structure into different sub selection, is called structured programming.

2. Advantages of structured programming [SEE 2075] [SLC 2066]


a) It is easy to design code and test the program modules independently
b) It is possible to use a single module in different in different places which reduces program
codes.

3. C language
 C is High level programing language that was developed by Dennis Ritchie at Bell
telephone laboratory in 1972 AD.
 C language is a structured programming language that divides program into many
functions.
 C is mostly used to write system program such as operating system, language,
compiler, text editor, language interpreters, utilities, etc.

4. Data types used in C: Data type are means to identify the type data and associated
operation of handling it.

5. Data types used in C language [SEE 2074] [SLC 2072] [SLC 2071 S] [SLC 2065]
[SLC 2068] [SLC 2070] [SEE 2065 S] [SLC 2066 S] [SLC 2067 S] [SLC 2069 S] [SLC
2070 S] [SQE 2074K]

a) char b) int c) float d) double

6. Characteristics of C language [SEE 2075 U] [SEE 2075 S 2] [SLC 2071] [SLC 2067]
[SLC 2069]
a) It is a high level language with some features of low level language.
b) It is mostly used to prepare system software.
c) It is structured programming language with function procedure.
d) It has enough number of inbuilt functions and operators.
e) It is a small programming language which occupies less memory space.

8. Features of C- language [SEE 2073 U]


a) Simple and easy to use
b) Occupies less memory
c) C is the structured programming language.
d) C has powerful set of operators.
e) C is a high level programming language.
f) C contains very less number of keywords

9. Advantages of C language
a) It is machine independent programming language
b) It is easy to learn and implemented C language
c) It can be implemented from mobile device to mainframe computers.
d) It is the mother of all modern programming language like python, pearl 5 and PHP

10. Disadvantages of C language


a) There is no runtime checking. It has poor errors detection system.
b) On large programs , it is hard to find errors.
c) There is no strict type checking int data type to float variables.
d) It does not support modern programming methodologies oriented programming language.

11. Variable [SEE 2073] [SLC 2071 S] [SLC 2070] [MFT 2075]
A variable is a location in the memory of a computer whose value may change during the
execution of program.

12. Operator [SQE 2075K]


Operators are special symbols that are meant for specific tasks or operators.
The different types of operators are:- Arithmetic operators, Assignment operators, Unary
operators, Relational operators, Logical operators.
Arithmetic Operators
Arithmetic operators are the operators that are used for manipulating arithmetic data and
performs arithmetic operation. The arithmetic operators are:- +, - , * , / and %
Urinary Operator.
The operator that operate on one operand variable or constant is called urinary operator. E.g.
++, - -
Relational Operator
The operator that compares values of expression and returns the weather True and False in a
logical form is called relational operator. Example <,>,<= etc.
Logical Operator [SEE 2075]
The operators used for logical operation is called logical operator. Example &&(and), ||(or)
and !(not) etc.
Assignment Operator
The operator which is used to assign a constant or variable to variable using “=” symbol is
called assignment operator.

Comparing C and QBASIC language [SEE 2074 U] [SLC 2068 S]


QBASIC C
It is a high level language without It is a high level language with some
feature of low level language. features of low level language.
It is mostly used to design application It is mostly used to prepare system
software. software.
It supports both sub and function It supports only function procedure.
procedure.
It is not case sensitive It is case sensitive

You might also like