I need to use unsigned double in C structure, but i can't compile. An error says: short, signed or unsigned invalid for `myvar'
this is my code:
#include <stdlib.h>
#include <stdio.h>
struct eReg{
int key;
unsigned char a;
unsigned short int b;
unsigned double myvar;
}MyReg;
Does anyone know what is wrong?
EDIT I did not know "unsigned double" equals "unsigned float", then I didn't knew I had to find the answer to my question as "unsigned floats in C?" Anyway after reading the post, I've accepted my question as "duplicate". I suggest deleting this question.