Given the number x in form of array where last element of array is the least significant bit of the number. Add 1 to the number x in the array. Assume no leading zeroes are present in the array. Print the number after adding 1 to it.
Given array-
Arr[]= {1,2,8,6,5,2}
Code in C++
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here