A) Write a 'C' program to accept a string from user and reverse it using Static
implementation of Stack.
Answers
Answered by
1
Explanation:
hey buddy here is your answer
Attachments:
Answered by
3
Explanation:
● Read a string.
● Push all characters until NULL is not found - Characters will be stored in stack variable.
● Pop all characters until NULL is not found - As we know stack is a LIFO technique, so last character will be pushed first and finally we will get reversed string in a variable in which we store inputted string.
Similar questions