IT Community - Software Programming, Web Development and Technical Support

scopes of identifires

This is a discussion on scopes of identifires within the C and C++ Programming forums, part of the Software Development category; can anyone explain me about the scopes that determines the visibility of the identifiers....


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-04-2007, 11:40 PM
nssukumar nssukumar is offline
D-Web Sr.Programmer
 
Join Date: Feb 2007
Posts: 155
nssukumar is on a distinguished road
Default scopes of identifires

can anyone explain me about the scopes that determines the visibility of the identifiers.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-20-2007, 08:34 AM
sundarraja sundarraja is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 174
sundarraja is on a distinguished road
Default Re: scopes of identifires

Scope of Identifier:

The Scope of Identifier the range of program statements within which the identifier recognized as a valid Name.

1. Ervey Identifer must be declared and given a type before it is referenced (Used)
2. The Scope of an Identifer begines at its declaration.
3. The declaration is within a compound statement,the scope of the identifer ends at the end of the compound statement.we say the identifier is Local to the compound statement.
4. If the declaration is not within a compound statement,the scope of the identifier ends at the end of the file. we say the identifier has global Scope.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the different scopes for Java variables? Arun Java Programming 2 08-16-2007 05:00 AM


All times are GMT -7. The time now is 04:07 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0