Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

C data Types

data Types
by

Vikas Pandey

on 7 February 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of C data Types

Terms that are used to define a variable before it's use.
It will assign storage for the variable and define the type of data will be hold in the location.
C has the following basic built-in datatypes.
int (int count=5;) (2 bytes)
float(float count=5.6;) (4 bytes)
double(double s=2500000;)(8 bytes)
char(char l='A';)(1 bytes)
Data Types
The data types explained above have following modifiers.
Short
Long
Signed
Unsigned

int-2 bytes
long int-4 bytes
unsigned int-2 bytes
long double-


USER DEFINED DATA TYPE
enum [data type] {const1,const2,.....const n};
Modifiers

Let there is a expression 4+5=9;
Here,'4 , 5' are called operands and '+' is "OPERATOR".
C-language supports the following types of operators.

1.Arithmatic Operator,
2.Logical Operator,
3.Bitwise Operator,
4.Assignment Operator,
5.Increament or decrement Operator.
OPERATORS
Arithmatic Operator
Plus(+)
Minus(-)
Multiply(*)
Divide(/)
Modulus(%)
Logical Operator
(==) Checkif the value of two operands are equal or not.
(!=) Check if the value of two operand are equal or not.
(>) Greater than.
(<) Less than.
(&&) lLogical 'AND' operator ,if both the operands are non zero then TRUE.
(ll) Logical 'OR' operator,if any of the two is non-zero then condition is true.
(!) Logical 'NOT' operator,reverse the logical state.
Bitwise Operators
Bitwise operators works on bits and perform bit by bit operations.
Operators are (&,l,^,~,<<,>>).
Assignment Oprators
These operators are such as (=,+=,-=,*=,/=,%=,<<=,>>=,&=,^=)
Postfix Operators a++,a--.
Prefix Operators ++a,--a.
Increment and decrement operators
THANK YOU
Full transcript