| |
GeekInterview.com > Interview Questions > Microsoft > C#
| Print | |
Question: C# pointers
Answer: can we use pointer in c# ? if we can then how it can implement ? and if no then why we can not use pointer in c#? |
| July 07, 2008 02:59:46 |
#2 |
| hmehta |
Member Since: July 2008 Total Comments: 1 |
RE: C# pointers |
we can use pointers in C# within the scope of unsafe code e.g.: unsafe { //all pointer related code here }
but doing so, makes ur code un managed. Also, if you want to have pointers to class level variables, you must use fixed keyword. |
| |
Back To Question | |