I keep getting this error error: invalid initializer for malloc duhCode:#include<stdio.h>
#include<stdlib.h>
typedef struct foo
{
unsigned int a:16;
unsigned int b:8;
unsigned int c:4;
} foo;
int main( void )
{
foo duh = malloc(sizeof(foo));
struct foo *fe = duh;
return 0;
}
I also get error: incompatible types in initialization for the pointer pointing to duh Y are these errors