Foysal on Basic Programming
      foyzulkarim@gmail.com




Data Types

what are these?
how the CPU works?

 it just executes 1s and 0s
we instruct the machine 
the instructions turned into 1s and 0s by
                compilers
Whats the difference between the
two?

    "100" and 100
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 each
of the questions mentioned above.

                  But why is that so?
Actually we set some rules
 for the data and assigning a
 specific amount of memory
to store that in memory. The
    data follows the rules
 defined for it and perform
 some predefined operations
Yes. ladies and gentlemen..




These different rules are
  called DATA TYPES
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 can't 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.

Data types

  • 1.
    Foysal on BasicProgramming foyzulkarim@gmail.com Data Types what are these?
  • 2.
    how the CPUworks? it just executes 1s and 0s
  • 3.
    we instruct themachine  the instructions turned into 1s and 0s by compilers
  • 4.
    Whats the differencebetween the two? "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 each of the questions mentioned above. But why is that so?
  • 6.
    Actually we setsome rules for the data and assigning a specific amount of memory to store that in memory. The data follows the rules defined for it and perform some predefined operations
  • 7.
    Yes. ladies and gentlemen.. Thesedifferent 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 can't 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.