without using sizeof operator how can i get the sizeof the variables
without using sizeof operator how can i get the sizeof the variables
int a[2];
char* start = (char*) a;
char* end = (char*)&a[1];
end-start is sizeof a[0]
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler