Data types
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
469
On Slideshare
469
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Foysal on Basic Programming foyzulkarim@gmail.comData Typeswhat are these?
  • 2. how the CPU works? it just executes 1s and 0s
  • 3. we instruct the machine the instructions turned into 1s and 0s by compilers
  • 4. Whats the difference between thetwo? "100" and 100
  • 5. Answer the questions "100"+"100" = ? 100+100=? "100"+1=? 100+1=? Length of "100" = ? Length of 100 = ? Memory need for "100" = Memory need for 100 = ? ?So, we can conclude that its not possible to answer eachof the questions mentioned above. But why is that so?
  • 6. Actually we set some rules for the data and assigning a specific amount of memoryto store that in memory. The data follows the rules defined for it and perform some predefined operations
  • 7. Yes. ladies and gentlemen..These different rules are called DATA TYPES
  • 8. So, in C#, the data type int means The int keyword denotes an integral type that stores values (source) Its size is Signed 32-bit Its range is -2,147,483,648 to 2,147,483,647 we can perform mathematical operations such as Addition, Subtraction etc on this type however, we cant perform concatenation, remove space etc operations on this type of data If you look more closely, the mentioned are the rules and allowed operations for int data type.