Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

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 Uzair Anwar (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.
...