What is the difference between instantiating a pointer like int* ptr=2; and int* ptr=new int. I am aware that "new" keyword is used for d
int* ptr=2;
int* ptr=new int