Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

C/C++: Obtenir la taille d’une structure


Download

#include <stdio.h>
 
struct demo {
  double i;
  int ID;
  char nom[80];
  char prenom[80];
} s;
 
int main(void)
{
  printf("La taille de la structure demo est de %d octetsn", sizeof(struct demo));
 
  return 0;
}
----------------------------------------------------------------------------

No comments yet.

Leave a Comment