void main()
{
int i=5;
printf("%d",i+++++i);
}
Answer Posted / vinay,
:) its just how the Compiler parses things..
the..maximum matching (of a token) principle... from the
left..
1. i++ is a valid maximum match. Good, next
2. + match, next (expects a + or a identifier,for furthur
match)
3. + (this is not a identifier, but a + will do so:
match=++). Next the parser wants an indentifier.. else
compiler flags an error..
4. + (not an identifier.. so.. fails)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between int main and void main in c?
explain what is an endless loop?
What is 1f in c?
How can I find out how much free space is available on disk?
Why is not a pointer null after calling free?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
What is the use of typedef in structure in c?
What does the file stdio.h contain?
What is scope and lifetime of a variable in c?
What is use of null pointer in c?
What is difference between main and void main?
How will you delete a node in DLL?
Which node is more powerful and can handle local information processing or graphics processing?
What is scope rule of function in c?
How do you use a pointer to a function?