To pass a pointer (the address of something), you need the "something" to exist in an identifiable memory location.
the simplest way is
const k = 15;
x = func(&k);
For readability, you can adopt a naming convention for constants, suck as calling it
k15
.