I tried out this sample program
int main()
{
int *i=new int;
return 0;
}
The return type of new is a void pointer . Pasted below void* operator new(std::size_t);
int *i=new int;
new int in the above statement should return void pointer .
How can a void pointer be stored in int pointer ?
Sounds silly but i guess someone will bring in more light on this .