Horje
c++ generic pointer Code Example
c++ generic pointer
void*  gp;    //generic pointer
int*  ip;     //int pointer
char*  cp;    //char pointer

gp = ip;      //legal conversion
ip = static_cast<int*>(gp); //explicit cast required
                            //in C++ but not in C
cp = ip;      //illegal conversion
*ip = 15;     //legal dereference of pointer to int
*ip = *gp;    //illegal generic pointer dereference




Cpp

Related
c++ copy with transform Code Example c++ copy with transform Code Example
hamming c++ Code Example hamming c++ Code Example
error C2011 Code Example error C2011 Code Example
why constructor can't be static in c++ Code Example why constructor can't be static in c++ Code Example
c++ vector declaration Code Example c++ vector declaration Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7