About
Contact
QtCreator
KDevelop
Solarized
1
#include <stdint.h>
2
#include
<stdio.h>
3
union
ptrbytes
{
4
int
*
p
;
5
uint8_t
bytes
[
8
];
6
};
7
int
main
(
) {
8
int
c
=
15
;
9
union
ptrbytes
pb
;
10
pb
.
p
= &
c
;
11
pb
.
bytes
[
7
] =
0xfe
;
12
printf
(
format:
"%d\n"
, *
pb
.
p
);
// break here
13
}
14