we instruct the machine the instructions turned into 1s and 0s by compilers
Whats the difference between thetwo? "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 eachof the questions mentioned above. But why is that so?
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
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 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.