#include <stdio.h>
main(){
int i=0;
struct emp
{
char t[6];
int x;
int y;
};
struct emp e = {"ram",304,678} ;
printf("%u\t%u\ t%u\n",&e.t,&e. x,&e.y);
}
output:
2280780 2280788 2280792
--------------------------------
Is the (char t[6]) taking 8 bytes?
what is that extra two bytes b/w char array and (int x)
main(){
int i=0;
struct emp
{
char t[6];
int x;
int y;
};
struct emp e = {"ram",304,678} ;
printf("%u\t%u\ t%u\n",&e.t,&e. x,&e.y);
}
output:
2280780 2280788 2280792
--------------------------------
Is the (char t[6]) taking 8 bytes?
what is that extra two bytes b/w char array and (int x)
Comment