what is the output of the following program?
main()
{
int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m);
}
Answer Posted / valli
0 0 1 3 1
m=-1&&-1&&0||2;//i.e,m=1;and i,j,m,l are incrimented
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the difference between printf and scanf in c?
What is typedef example?
What are called c variables?
What is the use of a conditional inclusion statement in C?
In a switch statement, what will happen if a break statement is omitted?
How do c compilers work?
What does. int *x[](); means ?
show how link list can be used to repersent the following polynomial i) 5x+2
How is a null pointer different from a dangling pointer?
How can I use a preprocessorif expression to ?
What is variable initialization and why is it important?
What are the disadvantages of external storage class?
Explain how do you determine a file’s attributes?
Explain what is the use of a semicolon (;) at the end of every program statement?
how could explain about job profile