707 views
1 votes
1 votes

Assuming that a pointer take 4 bytes and the size of an integer is 2 bytes. What is the size of the *a in declaration: int (*a) [10][2] ?

  1.  4
  2. 80
  3. 20
  4. 40

1 Answer

Best answer
1 votes
1 votes
int (*a) [10][2] = a is pointer to array of [10]*[2] integers then 'a'  will save address of array which is 4B

sizeof(a)= 4B

sizeof(*a)=10*2*2B=40 B
selected by

Related questions

0 votes
0 votes
0 answers
2
sim1234 asked Dec 21, 2018
715 views
Suppose R is a table with 4 attributes A,B, C and D, and S be a table with 3 attributes B, E, F. Now given a particular instance of R and S.S is empty, having no tuples. ...
0 votes
0 votes
0 answers
3
sim1234 asked Dec 17, 2018
403 views
Database that are designed and managed specifically to meet information needs are calledDatabase Management systemData WarehousesTransaction databasesProduction databases...
0 votes
0 votes
1 answer
4
sim1234 asked Dec 15, 2018
693 views
Consider CSMA/CD protocol, after 4th collision, what is the probability that node choose k=4.