I have a requirement where I have to create my own data type and i should assign some bytes to the data types.
Example:    
Datatype A : should have 1 byte of memory
Datatype B : should have 2 bytes of memory
Datatype C : should have 7 bytes of memeory etc..
Is there any way we can define our own data types and allocate some memory to them ?




