I was wondering if there was a way to makea function, that like the sizeof() function returning the byte number, it returns the bit number?
Code://for example
printf("%d bytes",sizeof(int));
//prints
4 bytes
Code:// I want to make a function modification, or a new function that prints amount of bits
printf("%d bits",sizeofbits(int)); //a new functions
//prints
32 bits