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
3
Answers
Literally nothing wrong with the compiler here...
Akkiraju Ivaturi
12y
943
1
Reply
Should this code compile? Does it? What does it mean?
using
System;
class
Test
{
enum
Foo { Bar, Baz };
static
void
Main()
{
Foo f = 0.0;
Console.WriteLine(f);
}
}
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Print, print, print...
Will this compile?