Submitted To, Name-Mr. Ankush Tandon Sir (Assistant Professor)
Submitted To, Name-Mr. Ankush Tandon Sir (Assistant Professor)
Submitted To, Name-Mr. Ankush Tandon Sir (Assistant Professor)
SUBMITTED TO ,
Name- Mr. Ankush Tandon Sir
(Assistant Professor)
General Aspect of ‘C’
{
C contains certain additional features that allows it
to be used at a lower level , acting as bridge
between machine language and the high level
languages.
This allows C to be used for system programming
as well as for applications programming
The Character set of ‘C’
C language consist of some characters set, numbers and
some special symbols. The character set of C consist of
all the alphabets of English language. C consist of :
Alphabets a to z, A to Z
Numeric 0,1 to 9
{
Special Symbols {,},[,],?,+,-,*,/,%,!,;,and more
The words formed from the character set are building
blocks of C and are sometimes known as tokens. These
tokens represent the individual entity of language. The
following different types of token are used in C
1) Identifiers 2)Keywords 3)Constants
4) Operators 5)Punctuation Symbols
Identifiers
++a = 11
--b = 99
C Assignment Operators
An assignment operator is used for assigning a
value to a variable. The most common
assignment operator is =
Operator Example Same as
= a=b a=b
+= a += b a = a+b
-= a -= b a = a-b
*= a *= b a = a*b
/= a /= b a = a/b
%= a %= ba = a%b
C Relational Operators
A relational operator checks the relationship between
two operands. If the relation is true, it returns 1; if the
relation is false, it returns value 0.
Relational operators are used in decision making and
loops.
Operator Meaning of Operator Example
== Equal to 5 == 3 returns 0
> Greater than 5 > 3 returns 1
< Less than 5 < 3 returns 0
!= Not equal to 5 != 3 returns 1
>= Greater than or equal to 5 >= 3 returns 1
<= Less than or equal to 5 <= 3 return 0
Array
Function