Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- typedef unsigned long long ull_t;
- const ull_t SIZE = (1UL << 3);
- typedef struct
- {
- int foo;
- int len;
- int boo;
- } str_t;
- int main()
- {
- str_t *ptr = malloc(sizeof(str_t) * 2);
- ptr[0].len = 10;
- ptr[1].len = 22;
- ptr++;
- --ptr->len;
- printf("%i", ptr -> len);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement