without using sizeof operator how can i get the sizeof the variables
This is a discussion on sizeof operator within the C Programming forums, part of the General Programming Boards category; 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]
If I have eight hours for cutting wood, I spend six sharpening my axe.