Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
How to use stackalloc?
Manish Tewatia
13y
3k
1
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;
}
}
}
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Query string Using Eval.
problems with my homework