summaryrefslogtreecommitdiffstats
path: root/tests/tst_sizeof.c
blob: 46ce2cf89cc91147a20e694f0e5557d464597440 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>

char str[]={'A',};
int i[]={1,2,3};

struct tsr
{
int len;
char s[256];
} t = {sizeof(str),"string"};

int main()
{
printf("sizeof str: %u  i:%u\n",sizeof("string"),sizeof(i));
return 0;
}