Let us assume I have declared the variable \'i\' of certain datatype (might be int, char, float or double) ...
NOTE: Simply consider that \'i\' is
I hope that below code would solve your problem in c++ without using sizeof() operator
for any variables like (int, char, float, double, char, short and many more...)
here I take integer,
int a;
then show it as byte addressable output,
cout<<(char *)(&a + 1) - (char *)(&a);