Following is C like pseudo code of a function that takes a number as an argument, and uses a stack S to do processing. void fun(int n) { Stack S; // Say it creates an empty stack S while
1.Prints binary representation of n in reverse order
2.Prints binary representation of n
3.Prints the value of Logn
4.Prints the value of Logn in reverse order
Posted Date:-2021-06-24 09:10:39