Data types

432 views
377 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
432
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Data types

  1. 1. Foysal on Basic Programming foyzulkarim@gmail.comData Typeswhat are these?
  2. 2. how the CPU works? it just executes 1s and 0s
  3. 3. we instruct the machine the instructions turned into 1s and 0s by compilers
  4. 4. Whats the difference between thetwo? "100" and 100
  5. 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. 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. 7. Yes. ladies and gentlemen..These different rules are called DATA TYPES
  8. 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.

×