/SOY/ACADEMY LEARNING PROGRAMMING - C# LESSON 1: Value data types, convert method, parse/tryparse >Value data types Reference data types These store the reference (memory address) of the data instead of the actual value. Multiple variables can refer to the same data in memory. Any changes made through one variable will affect the other variables referring to the same object Pointer data type These store the memory address of variables instead of actual values Pointer (int* p) will atore the memory adress of a valuable: ^int n = 20; ^int* p = &n; >Convert. Convert. is a method when you convert data into another data type. For instance: parse An operation of converting a string (text data) into another data type. Kinda similar to Conver. class ^Example: string numbers = "123"; ^int a = int.Parse(numbers); with int.Parse, we change the text "123" into an actual number value, so int a = 123. tryparse Like parse, it concerts strings into other data types, but works a bit differently - tryparase takes 2 parameters to do its' job: <1)The string we want to parse <2)The data type we want the string value to change into ^Example: string a = "1"; ^int b; ^int.TryParse(a, out b); We have the string a that has text value "1", and int b that has no assigned value. By using int.TryParse, we take string a's text value (a), and then parce in into a whole number - int value (thats why we write int before .TryParse). After the value is successfully parced to the required data type, it will be assigned to int b - because we wrote (out b). So now int b will contain the resuilt of our tryparse operators Symbols that perform operations on variables and values. A value/variable that gets an operation performed on it is called an operand. Arithmetic operations They use binary operators: increment/decrement Increment (++) is an operator that increases the numeric value of a variable by 1, while decrement (–) decreases it by 1. These operators are unary - they require only 1 variable to complete an operation ^Example: int a = 1; a++; a–; By using a++, we increased the value of int a by 1, resulting in 2. And by using a– afterwards, we decreased that value by 1, going back to 1