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
Can a pointer be null?
What is the function of multilevel pointer in c?
how to write optimum code to divide a 50 digit number with a 25 digit number??
What is the explanation for prototype function in c?
What is binary tree in c?
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Do you know the use of 'auto' keyword?
What is main function in c?
Why c is faster than c++?
Why main is not a keyword in c?
How will you delete a node in DLL?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
What is a program flowchart and how does it help in writing a program?