Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How to use stackalloc?
Manish Tewatia
Apr 12 2011 1:52 AM
3k
Reply
Is this code is correct, I want to allocate memory from the stack..
using
System;
using
System.Globalization;
public class
ABC{
static void
Main(string[] args)
{
unsafe
{
char
* i = stackalloc[
256
];
for
(
int
j =
0
; j <
256
; j++)
i[j] = (
char
)j;
}
}
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Query string Using Eval.
problems with my homework