I´m starting with C programing language and I have a doubt with the initialization of pointers. I know that when we declare a pointer we are reserving memory for the specific pointer, but this pointer may point to x address we don´t know anything about, the point is that I can do this:
char * s = "Hi";
but I can´t do this double * f = 3;
so what I do to "initialize" this double pointer is the next piece of code:
double * d;
double x = 3;
d = &x;
So that I have the pointer pointing to an specific memory location with the initial value I want to have.
Summing up, my doubt is:
1.- Is there any way to initialize double/int pointers as with char ones?