Switch to full style
For C/C++ coders discussions and solutions
Post a reply

how to find size without using sizeof

Fri Nov 07, 2008 5:08 pm

1.how to find size of structure without using sizeof operator?

2.variable name i.e. identifier is given how to find it's size without
using sizeof?



Re: how to find size without using sizeof

Fri Nov 07, 2008 5:09 pm

Make an array of structures and find the difference in addresses of 2
consecutive array elements. But , you would use sizeof in
a real program.

Post a reply
  Related Posts  to : how to find size without using sizeof
 Sizeof Operator     -  
 Set image size as a percentage of the page size     -  
 Find entity by id     -  
 find a string     -  
 Find MAC Address     -  
 Not to find nativeEncoder class jar     -  
 cannot find symbol constructor     -  
 find the difference between dates in asp.net     -  
 Find occurrences of each character in a string     -  
 find the similarity between two Strings in Java     -