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 |
what do you mean by static member variable?
i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<<k; } //please comment on the output
3. Differentiate verification and validation.
Why static functions always uses static variables?
How to overload postfix operator in c++
How do you make derived class as an abstract class?
What is the problem with multiple inheritance?
write a program to find 2^n+1 ?
How compiler selects(internally) required overridden function in inheritance?
2 Answers CSC, Infinite Computer Solutions,
What do you mean by binding of data and functions?
What do you mean by pure virtual functions?
Is oop better than procedural?