Logical Operator and Pre-increment Operator

What is the output of the following program
int x,y,z;
z=++x||++y &&++z;
return 0;

Showing Answers 1 - 3 of 3 Answers


  • Feb 15th, 2019

1 because logical oerator returns only 1s and 0s and preferance is && operator thats reason answer was 1

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions