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

Write a program to generate random numbers in c?

0 Answers  


What are loops c?

0 Answers  


write a program to swap two numbers without using temporary variable?

3 Answers  


ABCDCBA ABC CBA AB BA A A

4 Answers   TCS,


How can you tell whether two strings are the same?

0 Answers  






Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL

0 Answers  


int i=10; printf("%d %d %d", i, i=20, i);

0 Answers  


WHOT IS CHAR?

4 Answers   TCS,


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

0 Answers  


consider the following structure: struct num nam{ int no; char name[25]; }; struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}}; ..... ..... printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1); What does the above statement print? a.8,9 b.9,9 c.8,8 d.8,unpredictable value

4 Answers   TCS,


What is the purpose of the statement: strcat (S2, S1)?

0 Answers  


Can we change the value of constant variable in c?

0 Answers  


Categories