+ 9
Question in C++ pointer and reference var.
A pointer can be declared as void but a reference can never be void why.? int a = 10; void* aa = &a;. //it is valid void &ar = a; // it is not valid
0 Respuestas
A pointer can be declared as void but a reference can never be void why.? int a = 10; void* aa = &a;. //it is valid void &ar = a; // it is not valid