Search Results

Search: Posts Made By: Gandalfcgb
Forum: Programming 12-17-2001
3,852
Posted By Gandalfcgb
Doubt.
Yes, sizeof return the bytes that the struct allocate in memory but how two struct's with the same description, the diference is only in the order of fields, can have diferent sizes?
How a double...
Forum: Programming 12-17-2001
3,852
Posted By Gandalfcgb
C program with two results.
I have this program that I execute into UNIX UX and after into UNIX AIX. The program are just below:

#include <stdio.h>

struct A
{
double d;
char a[1];
};

struct B
{
char...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 08:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy