PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
4 sec ago
Untitled
C++ | 5 sec ago
Untitled
12 sec ago
Untitled
13 sec ago
Untitled
9 min ago
Untitled
18 sec ago
Untitled
XML | 26 sec ago
UVA -- 11138 Nuts and Bolts
C++ | 24 sec ago
Untitled
By: a guest on
May 9th, 2012
| syntax:
D
| size: 0.19 KB | hits: 26 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
This paste has a previous version,
view the difference
.
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
struct
A
{
int
x
;
}
struct
MyStruct
{
int
x
;
char
[
]
y
;
A
[
2
]
z
;
}
void
main
(
)
{
const
MyStruct a
=
{
1
,
"2"
,
[
{
4
}
,
{
5
}
]
}
;
static
assert
(
a.
z
.
x
==
4
)
;
}
create a
new version
of this paste
RAW Paste Data
struct A { int x; } struct MyStruct { int x; char[] y; A[2] z; } void main() { const MyStruct a = {1, "2", [{4}, {5}]}; static assert(a.z.x == 4); }