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 #error and use of it?
What is the g value paradox?
How can I write a function that takes a format string and a variable number of arguments?
What is "Hungarian Notation"?
What is pass by reference in c?
What are the salient features of c languages?
Is there any possibility to create customized header file with c programming language?
What would be an example of a structure analogous to structure c?
Describe the steps to insert data into a singly linked list.
Write the control statements in C language
What is a list in c?
Who invented bcpl language?
What is register variable in c language?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
Is the exit() function same as the return statement? Explain.