Download as pdf or txt
Download as pdf or txt
You are on page 1of 36
























































































Float data type allows a variable to store decimal values
it has a storage size of 4 bytes
%f is its format specifier
Double is also used to store decimal values with a greater precision
And the size of double (double precision float data type) is 8 bytes.
format specifier is %lf
char datatype is usedfor declaring character type variables.
format specifier for char data type is %c and size is 1 byte


















Logical operators are used to evaluate two or more conditions. ..
There are 3 logical operators in C language. They are, logical AND (&&),
logical OR (||) and logical NOT (!)
Logical AND (&&) evaluates to true if and only if both the given conditions are
true
Logical OR(||) evaluates to true if any one of the given conditions is true
Logical NOT(!) is used to negate a particular condition like age is not 18 or
marks are not less than 40
It is in cases like these we use logical operators

You might also like