Professional Documents
Culture Documents
Chapter Two Slide C# STD
Chapter Two Slide C# STD
Chapter two
Language Fundamentals in C#
1. unsafe
2. {
3. int val = 100;
4. int* ptr = &val;
5. Console.WriteLine("Data is: {0} ", val);
6. Console.WriteLine("Address is: {0} ", (int)ptr);
7. }
To get the integer value from an item, you must explicitly convert the item to an int:
First the block is executed and then the truth expression is evaluated.
In our case, the condition is not met and the do while statement terminates.