what are data types in c
Answers
Answered by
6
Hi friend if you like my answer then mark me as brainalist plzzzzzzz mark.........
There are five basic data types associated with variables:
int - integer: a whole number.float - floating point value: ie a number with a fractional part.double - a double-precision floating point value.char - a single character.void - valueless special purpose type which we will examine closely in later sections.
There are five basic data types associated with variables:
int - integer: a whole number.float - floating point value: ie a number with a fractional part.double - a double-precision floating point value.char - a single character.void - valueless special purpose type which we will examine closely in later sections.
Answered by
8
Each variable in C has an associated data type. Each data type requires different amounts of memory and has some specific operations which can be performed over it. Let us briefly describe them one by one:
Following are the examples of some verycommon data types used in C:
char:The most basic data type in C. It stores a single character and requires a single byte of memory in almost all compilers.
int:As the name suggests, an int variable is used to store an integer.
float:It is used to store decimal numbers(numbers with floating point value) with single precision.
double:It is used to store decimal numbers (numbers with floating point value) with double precision.
HOPEFULLY THIS WILL HELP YOU
MARK AS BRAINLIEST.....
Following are the examples of some verycommon data types used in C:
char:The most basic data type in C. It stores a single character and requires a single byte of memory in almost all compilers.
int:As the name suggests, an int variable is used to store an integer.
float:It is used to store decimal numbers(numbers with floating point value) with single precision.
double:It is used to store decimal numbers (numbers with floating point value) with double precision.
HOPEFULLY THIS WILL HELP YOU
MARK AS BRAINLIEST.....
Sneha259:
mark as BRAINLIEST .....
Similar questions