main()
{
int i = -3,j=2,k=0,m;
m= ++i || ++j && ++k;
printf("%d%d%d",i,j,k,m);
}
Answer Posted / ep
After the execution of the m evaluation the variables can be:
i = -2
j = 2
k = 0
m = 1
All of of this is because compilers do NOT completely
evalute expressions if they can short cut the evaluation.
Anyway, this is very bad programming.
| Is This Answer Correct ? | 18 Yes | 10 No |
Post New Answer View All Answers
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
What is the best style for code layout in c?
What are the 4 types of unions?
How can you increase the allowable number of simultaneously open files?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
Does c have function or method?
Who invented bcpl language?
What is the meaning of ?
In which header file is the null macro defined?
Write a program of prime number using recursion.
what do you mean by enumeration constant?
Can you please explain the difference between malloc() and calloc() function?
What is FIFO?
What is identifier in c?
What is the purpose of clrscr () printf () and getch ()?