-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstruct.c
More file actions
33 lines (31 loc) · 794 Bytes
/
Copy pathstruct.c
File metadata and controls
33 lines (31 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* =====================================================================================
*
* Filename: struct.c
*
* Description: various test with the struct key word
*
* Version: 1.0
* Created: 03/16/2015 04:58:33 PM
* Revision: none
* Compiler: gcc
*
* Author: nikkolasg (mn),
* Company:
*
* =====================================================================================
*/
#include <stdlib.h>
#include <stdio.h>
struct basic {
int num;
char * value;
};
int
main ( int argc, char *argv[] )
{
struct basic b1;
const struct basic b2;
printf("sizeof normal / const : %d vs %d\n",sizeof(b1),sizeof(b2));
return EXIT_SUCCESS;
} /* ---------- end of function main ---------- */