I'm trying to run this code. If it is ran like this it works, but as soon as the second struct is uncommented it fails with a "Segmentation fault: 11". What am I doing wrong here?
#include <stdio.h>
void func();
typedef struct foo
{
    double one;
    double two;
} foo;
int main() {
    func();
    printf("ret");
    foo *f;
    f->one = 10;
    f->two = 10;
//    foo *g;
//    g->one = 10;
//    g->two = 10;
return 0;
}
 
     
     
    