[ create a new paste ] login | about

Link: http://codepad.org/9YARtkuc    [ raw code | output | fork ]

C, pasted on Dec 6:
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>

struct S {
  int i;
  char c;
} s;

int main(void) {
  printf("s: %i\r\n",sizeof(*(&s)));
  printf("i: %i\r\n",sizeof(int));
}


Output:
1
2
3
4
s: 8
i: 4

Exited: ExitFailure 6


Create a new paste based on this one


Comments: