Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3601976
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:41:16+00:00 2026-05-18T20:41:16+00:00

This is the struct. //Structure pour communiquer les paramètres de traitement à travers le

  • 0

This is the struct.

//Structure pour communiquer les paramètres de traitement à travers le MMF
struct params_traitement_mmf
{
    int brilliance;
    double contraste;
    char convolution[9];
};

This is my code to display the size of this struct :

    char valeur[10];
    sprintf(valeur, "%d", sizeof(params_traitement_mmf));
    MessageBoxA(NULL, valeur, "rien", MB_OK);

The MessageBox displays 32.
Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:41:17+00:00Added an answer on May 18, 2026 at 8:41 pm

    What packing? And compiled for what platform? Alignment requirement differ between x86, AMD64 and IA64. And packing can wreak havoc in a struct size.

    Assuming default packing (8) and AMD64 target (or x86, wouldn’t differ) you have 8 bytes for the brilliance (4 bytes size, 4 bytes wasted), 8 bytes for contraste and then 16 bytes for the convolution (9 bytes size, 7 bytes wasted). Total 32, which seems just about what you get.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the struct. //Structure pour communiquer les paramètres de traitement à travers le
i have written this structure: struct bmpheader { unsigned char magic[2]; unsigned int fsize;
Let's say I have a first structure like this: typedef struct { int ivalue;
This is the 'C++' Structure used. struct gross { char date[11]; char ac[128]; char
I am having this structure in a .c file: struct entry { int position;
Let's say you have this structure: struct MMFS_IDENTIFICATION { char *szVendor; char *szControllerModel; char
I have a List of an Record(structure) like this : struct Rec { int
I have a data structure like this: struct foo { int id; int route;
I have program, that has structure defined like this: struct foo { int magic;
I have this struct : struct Snapshot { double x; int y; }; I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.