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 the difference between array and structure in c?
Tell us two differences between new () and malloc ()?
What are actual arguments?
What is a #include preprocessor?
Write programs for String Reversal & Palindrome check
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
how to build a exercise findig min number of e heap with list imlemented?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is a MAC Address?
What is the difference between near, far and huge pointers?
How is a structure member accessed?
What is the purpose of macro in C language?
What is an array in c?
Why is sizeof () an operator and not a function?
Explain the use of function toupper() with and example code?