TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Maha
NA
0
326.3k
Unsafe code
Oct 9 2013 7:01 AM
This program (1st one) is given in the following website.
http://www.dotnetperls.com/unsafe
When I tried to compile error message is "Unsafe code may only appear if compiling with /unsafe". Please explain the reason.
using System;
class Program
{
unsafe static void Main()
{
fixed (char* value = "sam")
{
char* ptr = value;
while (*ptr != '\0')
{
Console.WriteLine(*ptr);
++ptr;
}
}
}
}
Reply
Answers (
5
)
OCR Converted File save Into Database Fields Formats
Autocomplete textbox in Mdi child form c#