Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91967150
memory_second.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
Sat, Nov 16, 05:37
Size
426 B
Mime Type
text/x-c
Expires
Mon, Nov 18, 05:37 (2 d)
Engine
blob
Format
Raw Data
Handle
22355806
Attached To
R9316 Omid_Ashtari
memory_second.cc
View Options
#include <vector>
#include <array>
#include <memory>
#include <iostream>
std
::
vector
<
int
>*
stack_allocation
(
int
n
)
{
return
nullptr
;
}
std
::
vector
<
int
>*
heap_allocation
(
int
n
)
{
return
nullptr
;
}
int
main
()
{
std
::
vector
<
int
>
*
stack_values
=
stack_allocation
(
10
);
std
::
vector
<
int
>
*
heap_values
=
heap_allocation
(
10
);
std
::
cout
<<
stack_values
->
size
()
<<
", "
<<
heap_values
->
size
()
<<
std
::
endl
;
return
0
;
}
Event Timeline
Log In to Comment