همونطور که قبلا هم مطرح شده بود این کار با استفاده از CHAR_BIT میتونه انجام بشه:
#include<limits.h>
#include<iostream.h>
int main(){
    cout<<sizeof(char); //Which always return 1 (Byte!)
    cout<<"\n"<<CHAR_BIT; // This returns what you want
    system("pause");
    return 0;
    }