Multiple choice

What would be the value of 'j' at the end of the 'C' programming statement?int i=1234, k,j=0;do{ k=i%10; j=j*10+k; i=i/10; }while(i!=0); printf(n value of j=%d,j);

  1. 1234

  2. 423

  3. 3241

  4. 4321

  5. 123

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This is the correct output or value of 'j' as the statement inside the loop will get the remainder of 'i' and decrement the value of 'i' by one digit after each iteration and 'j' will record the reverse of 'i'.