V
vicmann
1. Put an application in sleep mode so that it consumes as little PC
resource as possible. When triggered by an event, back to normal/work mode.
After done with work, back to sleep mode again.
How can this be done in C#?
2. Is this wrong?
int *p;
*p = 5; // p is never initialized and could point to anywhere
3. How to pass p as a pointer into a function?
4. "C# is a type-safe language. Variables are declared as being of a
particular type, and each variable is constrained to hold only values of its
declared type." What's the exact meaning of "type-safe" here?
5. In 4, should it say that there are three types for variables in C#:
value, reference, and pointer?
Thanks for your help!
resource as possible. When triggered by an event, back to normal/work mode.
After done with work, back to sleep mode again.
How can this be done in C#?
2. Is this wrong?
int *p;
*p = 5; // p is never initialized and could point to anywhere
3. How to pass p as a pointer into a function?
4. "C# is a type-safe language. Variables are declared as being of a
particular type, and each variable is constrained to hold only values of its
declared type." What's the exact meaning of "type-safe" here?
5. In 4, should it say that there are three types for variables in C#:
value, reference, and pointer?
Thanks for your help!