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 |
a 'c' program to tell that the set of three coordinates lie on a same line
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?
Write a C++ program without using any loop (if, for, while etc) to print numbers from 1 to 100 and 100 to 1;
18 Answers Accenture, Cisco, Egentec, HCL, Ideaz, Infosys, M-Systems, MYR, TCS,
What is wrong with this statement? Myname = 'robin';
what is the importance of spanning tree?
How is actual parameter different from the formal parameter?
why return type of main is not necessary in linux
What is a node in c?
Explain b+ tree?
What is static identifier?
What is string length in c?