this is just a school excersice... i'm currently in my first year studying Computer science,
so far i managed to do well, but this bit manipulation startled me a bit,
i'll give it a try and get...
Type: Posts; User: aleitamar
this is just a school excersice... i'm currently in my first year studying Computer science,
so far i managed to do well, but this bit manipulation startled me a bit,
i'll give it a try and get...
thank you for the quick answer!
the original problem is as follows:
i have a struct:
typedef struct {
char *name;
hmm, that's nice
how about a more generic solution where i get an array and its size, and i want to do this for the whole array?
and can you show the other way to do this with a union or...
i need to compress an array of chars, so that my new data will be written to a binary file, with only the first 5 bits of each byte.
if i have an array of
{1,2,3}
i want to write to my...