GeekInterview.com
Home
Tech Articles
Code Samples
Learn
Freelance Projects
Online Testing
Geek Talk
Job Postings
Knowledge Base
Geek Blogs
Question Bank
Interview Questions
Certification
Placement Papers
Tech FAQ
Career Advice
Engineering
Ask Question
I am new,
Sign me up!
User Name
Remember Me?
Password
Interview Questions
Certification
Placement Papers
Tech FAQ
Career Advice
Engineering
Ask Question
GeekInterview.com
>
Interview Questions
>
Microsoft
>
C#
Go To First
|
Previous Question
|
Next Question
C#
| Question 409 of 436
Print
what is the use of fixed statement in c#?
Total Answers and Comments:
3
Last Update: September 12, 2008 Asked by:
musclebai
Sponsored Links
Best Rated Answer
—
No best answer available. Please pick the good answer available or
submit
your answer.
February 09, 2008 10:50:13
#1
pratiksha.saxena
Member Since: February 2008 Contribution: 1
RE: what is the use of fixed statement in c#?
Prevents relocation of variable by Garbage Collector.
Is this answer useful?
Yes
|
No
April 02, 2008 03:30:34
#2
Vikas Yadav
Member Since: April 2008 Contribution: 15
RE: what is the use of fixed statement in c#?
The
fixed
keyword is responsible for the pinning of managed objects(maanged by CLR). Pinning is the act of specifying to the GC that the object in question can’t be moved.Permitted in unsafe context only i.e wwhen u are using pointers in C#.
Is this answer useful?
Yes
|
No
September 12, 2008 01:49:05
#3
asifdcsku
Member Since: September 2008 Contribution: 3
RE: what is the use of fixed statement in c#?
Fixed is used while doing type casting
Fixed ensures that no exception will be thrown even if we are doing a wrong cast.
Is this answer useful?
Yes
|
No
Go To Top
Sponsored Links
Related Categories
—
ADO.NET Interview Questions
ADO.NET 2.0 Interview Questions
Architecture Interview Questions
ASP Interview Questions
ASP.NET Interview Questions
ASP.NET 2.0 Interview Questions
Microsoft.NET Interview Questions
C# Interview Questions
DataGrid Interview Questions
DotNet Interview Questions
Microsoft.NET 2.0 Interview Questions
Microsoft Basics Interview Questions
Reporting Services Interview Questions
VB.NET Interview Questions
Visual Basic Interview Questions
Sponsored Links
About Us
-
Privacy Policy
-
Terms and Conditions
-
Contact
-
Ask Question
-
Propose Category
-
Site Updates
Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved