Total members 9951 | Gratitudes |It is currently Sat Feb 11, 2012 10:34 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: how to find size without using sizeof
PostPosted: Fri Nov 07, 2008 5:08 pm 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:47 pm
Posts: 281
Has thanked: 0 time
Have thanks: 1 time

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?


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: how to find size without using sizeof
PostPosted: Fri Nov 07, 2008 5:09 pm 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:53 pm
Posts: 229
Has thanked: 0 time
Have thanks: 0 time
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.


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  


 Similar topics
 Topic title   Forum   Author   Comments 
 Not to find nativeEncoder class jar  Java  Anonymous  0
 Hows does Windows find Java?  Java  AskBot  2
 set the size of border in pixels  CSS examples  msi_333  0
 Array size to zero  JavaScript examples  msi_333  0
 change font size in JavaScript  JavaScript examples  msi_333  0

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team