Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78946538
alloc.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Aug 23, 22:22
Size
361 B
Mime Type
text/x-c
Expires
Sun, Aug 25, 22:22 (2 d)
Engine
blob
Format
Raw Data
Handle
20126752
Attached To
R9360 PCSC_git
alloc.cc
View Options
#include <iostream>
int
get_size
();
void
init
(
int
array
[])
{
int
size
=
get_size
();
for
(
int
i
=
1
;
i
<
size
;
++
i
)
{
array
[
i
]
=
0
;
}
}
int
main
(
int
argc
,
char
*
argv
[])
{
int
size
=
10
;
int
array
[
size
];
int
a
=
1234
;
std
::
cout
<<
a
<<
std
::
endl
;
init
(
array
);
std
::
cout
<<
a
<<
std
::
endl
;
return
0
;
}
int
get_size
()
{
return
30
;
}
Event Timeline
Log In to Comment