hadi11 said:
is sawal ka jawab chahea please help...
Assume that an integer needs four bytes, a real number needs eight bytes, and
a char needs one byte. Assume the following definitions and declarations:
struct nametype {
char first[10];
char midint;
char last[20];
};
struct person {
struct nametype name;
int birthday[2];
struct nametype parents[2];
int incode;
int numchildren;
char address[20];
char city[10];
char state[2];
};
struct person p[100];
If the starting address of p is 100, what are the addresses of each of the
following?
(a) p[10]
(b) p[20].name.midinit
(c) p[20].income
(d) p[20].address[5]
(e) p[5].parents[1].last[10]
Bookmarks