How much space is allocated by the expression
If size of
4 and size of
int pointer is
options are 2, 4, 20, 40
I am poor at pointers please help me.
a is array of pointer to int of 10 size, so size =
sizeof (int*) * 10.
You can apply sizeof operator to print its size:
printf("sizeof = %zu", sizeof(a));
If suppose in some system sizeof pointer to int is 2 (as you says in question) then size will be 20 bytes.