Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » unexpected output while reading the size of structure.
unexpected output while reading the size of structure. [message #34753] Sat, 10 December 2011 05:39 Go to previous message
Shwetha is currently offline  Shwetha
Messages: 39
Registered: August 2011
Member
Hii,


Please find the attached test case for the reference..in which I am trying to read the size of the following structure.

struct read_data
{
int i;
char c;
double d;

};
read_data r;

Output :


Size of int = 4
Size of char = 1
Size of double = 8

Size of r.i = 4
Size of r.c = 1
Size of r.d = 8

size of struct read_data = 16

Expected size of the struct read_data is 13 bytes.But giving the wrong output..Would you please let me know the issue behind this.


Thank You,

Shwetha S

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: dli file for Oracle10g
Next Topic: gdk_pixbuf-2.0 linker error
Goto Forum:
  


Current Time: Sat Jun 14 09:25:49 CEST 2025

Total time taken to generate the page: 0.03490 seconds