C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Variable declaration


Posted Date: 04 Jun 2008    Resource Type: Errors and Solutions    Category: General
Author: Debasmit SamalMember Level: Gold    
Rating: Points: 5



Why do I get a syntax error when trying to declare a variable called checked?

ans : The word checked is a keyword in C#.




Responses

Author: Phani    17 Jun 2008Member Level: Silver   Points : 1
Hi....
Thanks for sharing your knowledge with us.
I hope to see more good code from your side
This code will help lots of guys



Author: Kapil Dhawan    20 Jun 2008Member Level: Gold   Points : 1
hello,
Thanks for sharing your knowledge with us.
i hope to see more valuable things from your side
Regards,
Kapil


Author: Prafulla S Shimpi    12 Sep 2008Member Level: Gold   Points : 2
While declaring any variable irrespctive of any language, you make sure that you are not using any keywords / reserved words as a variable name.

sometimes, code gets compiled without any error, but either it throws exception at runtime or shows wrong value.

I have encountered this during C++ coding time.




Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: error CS1006
Previous Resource: ConfigurationException
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use