Pointer for double and use new to allocate memory
#include <iostream> using namespace std; int main() { double *p; p = new double (-123.0987); cout << *p << '\n'; return 0; }