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);
}
Answers were Sorted based on User's Feedback
Answer / vignesh1988i
0 0 1 3 1
as for as i know this is the output........
thank u
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / 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 |
what is the coding of display the factorial of a number using array and function?
What are the advantages of external class?
how to swap 2 numbers in a single statement?
What does %c mean in c?
What is clrscr in c?
application of static variables in real time
What are the different types of constants?
What is pointer in c?
where does malloc() function get the memory?
What are nested functions in c?
Write a code to generate divisors of an integer?
What is malloc() function?