Professional Documents
Culture Documents
(A COLLEGE OF PHARMACY)
SUGANDHA DELHI ROAD , NEAR CHINSURAH STATION ,
HOOGLY -712102 WESTBENGAL
TITLE : C PROGRAMMING VARIABLES AND DATATYPE
DEFINITION
WHAT IS C
C- VARIABLES
TYPES OF VARIABLES IN C
Size Of Data Types In C
C DATA TYPE
IMPORTANCE OF C DATATYPES
CONCLUSION
REFERENCES
DEFINITION :
C is a programming language developed at AT & T’s Bell laboratories of
USA in 1972. It was designed and written by a man named Dennis Ritchie. In
the late seventies C began to replace the more familiar languages of that time
like PL/I, ALGOL , etc. No one pushed C. It wasn’t made the ‘official’ Bell
Lab’s language. Thus, without any advertisement, C’s reputation spread and
its pool of users grew. Ritchie seems to have been rather surprised that so
many programmers preferred C to older languages like FORTRAN or PL/I,
or the newer ones like Pascal and APL. But thats what happened.
Possibly why C seems so popular is because it is reliable, simple
and easy to use. Moreover, in an industry where newer languages, tools and
technologies emerge and vanish day in and day out, a language that has
survived for more than three decades has to be really good.
WHAT IS C :
C is a strongly typed language. What this means it that, the type of a
variable cannot be changed. Suppose we declared an integer type variable
so we cannot store character or a decimal number in that variable.
There are set of rules to be followed while declaring variables and data
types in C Programming:-
PRIMITIVE DATE
USER DEFINED DATE TYPES
DERIVED TYPE
IMPORTANCE OF C DATATYPES:
C data types play a crucial role in programming as they determine the size,
memory allocation, and behavior of variables in a C program. Understanding
the importance of C data types is essential for writing efficient, reliable, and
portable code. Here are some key reasons why C data types are important:
Memory Management: Each data type in C has a specific size, which determines
the amount of memory allocated to store variables of that type. Properly choosing
data types allows efficient use of memory, reducing memory waste and
optimizing the program's performance.
Data Representation: Different data types represent different kinds of data, such as
integers, floating-point numbers, characters, etc. Choosing the right data type
ensures that data is represented accurately, preventing data loss or truncation.
CONCLUSION:
In conclusion, variables and data types are fundamental
concepts in C programming. They play a crucial role in defining
and storing data in memory, allowing programmers to
manipulate and work with different types of information
C remained the most popular programming language for more than
two decades in TIOBE Index – we are talking about a consistent lead in
the top 2.
C remained used to date for its unmatched performance and low-level
control. Most applications that make great use of C are system-level
applications – OS, Compilers, Interpreters, Databases, and Libraries.