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 |
How to get string length of given string in c?
Write a program that can show the multiplication table.
what is diference between return 0 and return NULL??
write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR
What is the difference between far and near in c?
What are the advantages of Macro over function?
When c language was developed?
What is the role of && operator in a program code?
what is the difference between declaration and definition of a variable or function ?
Why do some versions of toupper act strangely if given an upper-case letter?
What is the restrict keyword in C?
How can I implement a delay, or time a users response, with sub-second resolution?