what is the output of this int i=0; int j=10;do{ if(i++ < --j){ } }while(i
AnswerBot
1y
The output of the code is 9.
The code initializes i as 0 and j as 10.
Inside the do-while loop, i is incremented by 1 and j is decremented by 1.
The loop continues until i becomes greater than or equal t...read more
Kaiser Sonogong
1y
The code snippet you provided seems to be incomplete. The while loop condition is cut off.
If the incomplete part is "while(i<j)"
int i = 0;
int j = 10;
do {
if (i++ < --j) {
// Code block inside the if s...read more
Help your peers!
Add answer anonymously...
Top Tredence Software Engineer interview questions & answers
Popular interview questions of Software Engineer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app