C Program to count trailing zeros using bitwise operator
[crayon-60fba0a27e9b5130734084/] Output: [crayon-60fba0a27e9c0778993200/] lets run this program one more time - [crayon-60fba0a27e9c3746522635/]
[crayon-60fba0a27e9b5130734084/] Output: [crayon-60fba0a27e9c0778993200/] lets run this program one more time - [crayon-60fba0a27e9c3746522635/]
[crayon-60fba0a27f2d1010599884/] Output: [crayon-60fba0a27f2d8459516186/]
[crayon-60fba0a27f630734219552/] Output: [crayon-60fba0a27f637088887281/]
[crayon-60fba0a27f99c265938253/] Output : [crayon-60fba0a27f9a4500344604/]
Generally Swaping two number requires three variables , Let's Take look at Procedure of swaping two Number For Swaping Two numbers following procedure is used - [crayon-60fba0a27fd69933010307/] Now we will Explaining above three statements using example .... Let x = 12 and y = 9 [ For our sake and simplicity consider number is of 4 bits ] [crayon-60fba0a27fd77735546644/] X-OR Table : A B A X-OR B 1 1 0 1 0 1 0 1 1 0 0 0 Step 1 : After : x = x ^ y [crayon-60fba0a27fd7f142565651/] Step 2 : After y = y [...]