DSA (Data Structure Algorithm)

DSA (Data Structure Algorithm)

by Deleted user -
Number of replies: 3

AL SALAM ALYAKUM

char your information for this subject hear to help student to understand many things

 

 

In reply to Deleted user

Re: DSA (Data Structure Algorithm)

by Deleted user -
In reply to Deleted user

what is the difference between using ++i and i++??

by Deleted user -
  • ++i will increment the value of i, and then return the incremented value.

     i =1;
     j =++i;(i is 2, j is 2)
  • i++ will increment the value of i, but return the pre-incremented value.

     i =1;
     j = i++;(i is 2, j is 1)