pointers are support in C#? if yes then how to use it?
Answers were Sorted based on User's Feedback
Answer / supratim sengupta
pointers in C# are considered as unsafe code. We can use
pointers in the same way as we use in C++ or VC++ but we
need to build it with a /unsafe option
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / rajavel
ya... pointer can be used in c# for value and array
types...and in inside class too (but class-> reference type
so not applicable)in the class members which are not ref
type../ using fixed keyword ... but it is unsafe....
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / varsha vilas kalebag
yes, pointer is nothing but value is saved in another
memory address
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / preeti
Yes pointers are supported in c#.
Def:- pointers point to other veriable's memory address.
Uses:-
i)It uses in call by reference concept.
ii)Number of pointers can point to same memory address.
iii)using pointer there is working on exact memory location
instead of other veriable.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / kiran
yes we can use pointers same as in c++ and c but pointer concept is not supported in c# but we can implement using interface concept
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / baru
yes,pointers can support in c#.Basically variables can hold and work on values of data types but pointers can work on addresses of those variables so memory space utilization will be efficient as these pointers works on available memory spaces
| Is This Answer Correct ? | 0 Yes | 0 No |
Are polymorphisms mutations?
Why is object oriented programming so hard?
What is deep and shalow copy?
Give two or more real cenario of virtual function and vertual object
When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory??
What is object and class in oops?
what is difference between class template and template class?
Contrast OOP and SOA. What are tenets of each?
1 Answers Siebel Systems, Wipro,
Can we call a base class method without creating instance?
What do you mean by inheritance?
What is polymorphism what is it for and how is it used?
why freind function takes more parameter than normal member function in c++?