My favorite:
#include <stdlib.h>
struct st *x = malloc(sizeof *x);
Note that:
x
must be a pointer- no cast is required
- include appropriate header
My favorite:
#include <stdlib.h>
struct st *x = malloc(sizeof *x);
Note that:
x
must be a pointer