A pointer is a variable that holds the memory address of another variable. In c#, pointer can only be declared to hold the memory address of value types(except in the case of arrays).
Pointers are declared implicitly using the dereferencer Symbol *,
int *p;
Some programmer place the dereferencer symbol immediately after the type name.
int* p;
This variation appears to work just as well as the previous one. this declaration sets upa pointer "p", which will pointto the initial memory address of an integer(stored in four bytes).
Pointers are declared implicitly using the dereferencer Symbol *,
int *p;
Some programmer place the dereferencer symbol immediately after the type name.
int* p;
This variation appears to work just as well as the previous one. this declaration sets upa pointer "p", which will pointto the initial memory address of an integer(stored in four bytes).
No comments:
Post a Comment