The language like 'c' allows the use of same name for two different variables Is it possible for lexical analyser to distinguish between such variables?
-
-
Answer:
Using the same name for two different variables in languages like C is possible only within two different scopes, such as outside a block and inside a block... int somevariable; /* outside scope */ { ... int somevariable; /* inside scope */ } In order for a lexical analyzer to distinguish those two variables, it must be able to parse the program and resolve scope the same way the compiler does.
wiki.answers.com Visit the source
Related Q & A:
- How To Connect Two Different Network Segments Using A Switch And A Router?Best solution by Super User
- How do I bridge two different amps together?Best solution by ecoustics.com
- Does mikkel bang have two different colored eyes?Best solution by Yahoo! Answers
- How do I file taxes when I worked in two different states?Best solution by Yahoo! Answers
- Can I trade under a name which is different from my business name?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.