Do the dry run for the given code ?

+1 vote
asked Sep 20, 2019 by anonymous
edited Oct 4, 2019

Do the dry run for the given code with explaination ?

void main()

{

int i,j,k;

i=2;

j=4;

k=i++>j&2;

printf("%d ",k);

if(++k && ++i<--j|| i++)

{

j=++k;

}

printf( "%d %d %d ",i,-j--,k);

getch();

}

1 Answer

0 votes
answered Oct 3, 2019 by (360 points)
IN both print statements your syntax error is found just improve it
commented Oct 4, 2019 by anonymous
changes have done in the print statement now explain the code
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...