This is going to be quick: Is it possible to allocate and initialize an int in the same line?

int* p = new int(5);

I haven't found a way to 1 liner it. Is it possible?
Do I have to two liner it?

int* p = new int();
*p = 5;

Thanks.

Reply via email to