Pointer type void
void* a; // pointer variable with unspecified target type
- Assignment from any pointer type to
void*
valid
- No address arithmetic on
void*
because size of elements unknown
- Cast to non-void pointer required before usage:
double* d[10];
a = &d;
/*
↓ Derefence double* */
* (double*) a = 3.2;
/* ↑ Cast a to double* */
If you want to change selection, open document below and click on "Move attachment"
Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details