+ 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

6th Aug 2020, 5:42 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
1 ответ