Skip to main content

Identifiers In C Programming Language.



Identifiers used In C 


                A c program consists of two types of elements, user defined and pre-defined.identifier is nothing but a name given to those elements. An identifier is a word used by programmer to name a variable,function or label.identifiers consists of letters and digits,in any order , except that the first character must be a letter.Both upper and lowercase letters can be used.






Identifiers are:-

1. Keywords.
2. Variables.
3. Constants.
4. Numbers.
5. Data types

  1. keywords :-

              Keywords are nothing but system defined identifiers. Keywords are reserved words of the language.they have specific meaning in the language and cannot be used by the programmer as variable or constant names.

c language specifies 32 keywords and other reserved keywords. Keywords are listed below :

auto
If
return
continue
case
const
new
else
extern
struct
static
char
break
long
long
int
double
goto
while
typedef
Float
void
switch
for
unsigned
default
enum
register
do
sizeof
volatile
floatn


union


2. variable :-

A variable is nothing but a user defined element.a variable is a name that represents a memory location that can store a value.a variable is used to represent a numerical value or a character or a constant.the data(value) must be assigned to the variable in the program.rules for variable formation are as :
Ø Keywords of c cannot be used as variable name.
Ø A digit (0-9) may not start a variable.
Ø Variable name must be of maximum 8 character in length.
Ø It should not contain (comma) ’ , ’ or space in name.


3. constants :-

There are four types of constants in c.they are :-

Ø Integer constants.
Ø Floating-point constants.
Ø Character constants.
Ø String constants.

Integer and floating-point constants are also referred as numeric-type constants because they represent numbers.


4. numbers :-

Numbers are further divided into two types :-
Ø Whole numbers (integer).
Ø Real numbers(float).

Whole numbers :-
A number which does not contain decimal point is known as whole number.c defines two type of whole numbers depending upon the they store they are - int and long.

Real numbers :-
A number which contain decimal point ,is known as real numbers. C defines two basic types real numbers depending upon the range of number they store. They store- float and double.

5. Data types :-

We know the values (data), which will be given by user, will be stored into a memory and will be given a name which is known as variable.for every variable, it reserve certain amount of memory. But two question are arising :-
Ø How much amount of memory?
Ø What will be the values?

 Data types with their size and range are listed below :

Data type
Size in bytes
Range
int
2
-32768 to 32767
float
4
1.2E-38 to 3.4E+38
long
4
-9223372036854775808 to 9223372036854775807
Double
8
2.3E-308 to 1.7E+308
char
1
-128 to 127 or 0 to 255
Long double
10
3.4E-4932 to 1.1E+4932
short
2
-32,768 to 32,767


If you like this post subscribe for more blogs 



If you have any questions comment down below 🠟🠟🠟


Subscribe to the You Tube channel soon we are going to upload basic C tutorial series
So do subscribe: - You Tube Channel  
Buy T-Shirts Here : 







Thank You.

Information collected by 

Dk45516

Comments

Post a Comment

Popular posts from this blog

Mobile Application Development Answers | Android App Development

Title M Mobile Application Development- Experiment No 1 Answers         Here we have given you the pdf copy of answers of Maharashtra State Board of Technical Education (MSBTE) , Diploma, 6 th Semester - I scheme, Mobile Application Development(22617) - Experiment No 1 from Laboratory manual.       This file include all the questions and their answers as per MSBTE guideline,  All the questions included in the file are as follows:     IX. Practical Related Questions. Q1. List different Android O.S. versions. Q2 . State characteristics of android operating system. X. Exercise. Q1. Draw the architectural diagram of Android operating system. Q2. Differentiate between Windows operating system and Android operating system.     Answers of above questions are given in the file, you can download the file by just clicking the link below. Mobile Application Development(22617) Experiment No 1 Answers  

IFYX Keyboard Cover / Protector

A IFyx Laptop Keyboard Cover for protection From water If you want to buy a protective cover to protect your Laptop Keyboard you must visit IFYX STORE  to buy these amazing Keyboard covers.      As we know now a days keyboards of the laptops are not same in design where some keys are less or more than other or layout might change, so we would not be able to get proper keyboard cover for our laptops. the best example is Lenovo Legion 5 Series  .   But now if you want to buy perfect fitting keyboard cover for your laptop then you cant goto IFYX STORE and search for you model and you can easyly get perfect fit. Best things about IFYX STORE :  Durability. Perfect Cutout for each and every Key. Cheaper in price as compair to other keyboard covers.  So if you want to buy This Keyboard cover you can click the link given below and will be redirected to official website of IFYX STORE  :  Link :  https://ifyxstore.com/?ref=9ksd1e2tn9 If y...

Introduction to 'C' Programming language.

Introduction to C Programming language              C is a high level,general purpose,structured programming language.instructions of c consist of terms that are very closely same to algebraic expressions,consisting of certain English keywords.  By design, C provides constructs that map efficiently to typical  machine instruction  and has found lasting use in applications previously coded in  assembly language . Such applications include  operating systems  and various  application software  for computers, from  supercomputers  to  embedded systems .              C was originally developed at   Bell Labs  by  Dennis Ritchie  with their colleague Ken Thompson between 1972 and 1973 to make utilities running on  Unix . Later, it was applied to re-implementing the kernel of the Unix operating system. During the 19...