Rob
0
Q:

void pointer in c++

int a = 10; 
char b = 'x'; 
  
void *p = &a;  // void pointer holds address of int 'a' 
p = &b; // void pointer holds address of char 'b' 
0

New to Communities?

Join the community