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



what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j+..

Answer / praveen

0 0 1 3 1


correct me if im wrong

Is This Answer Correct ?    22 Yes 0 No

what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j+..

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

what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j+..

Answer / abhradeep chatterjee

0 0 1 3 1

Is This Answer Correct ?    4 Yes 0 No

what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j+..

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 output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j+..

Answer / manojkumar

0 0 1 3 1
this answer is write

Is This Answer Correct ?    2 Yes 0 No

what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j+..

Answer / dally

0 0 0 3 1

Is This Answer Correct ?    1 Yes 3 No

what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j+..

Answer / nisha

-1 -1 0 2 1

Is This Answer Correct ?    3 Yes 10 No

Post New Answer

More C Interview Questions

a 'c' program to tell that the set of three coordinates lie on a same line

3 Answers   Persistent,


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

0 Answers  


in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?

11 Answers   IBM,


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';

0 Answers  






what is the importance of spanning tree?

0 Answers  


How is actual parameter different from the formal parameter?

0 Answers  


why return type of main is not necessary in linux

0 Answers   TCS,


What is a node in c?

0 Answers  


Explain b+ tree?

0 Answers  


What is static identifier?

0 Answers   TCS,


What is string length in c?

0 Answers  


Categories